[FIX] mouse coords were wrong
This commit is contained in:
2
mini.cpp
2
mini.cpp
@@ -292,7 +292,7 @@ int main(int argc,char*argv[]){
|
|||||||
}
|
}
|
||||||
keys = SDL_GetKeyboardState(NULL);
|
keys = SDL_GetKeyboardState(NULL);
|
||||||
mouse_buttons = SDL_GetMouseState(&mouse_x, &mouse_y);
|
mouse_buttons = SDL_GetMouseState(&mouse_x, &mouse_y);
|
||||||
mouse_x /= 4; mouse_y /= 4;
|
mouse_x /= screen_zoom; mouse_y /= screen_zoom;
|
||||||
|
|
||||||
if (lua_is_playing()) {
|
if (lua_is_playing()) {
|
||||||
lua_call_update();
|
lua_call_update();
|
||||||
|
|||||||
Reference in New Issue
Block a user