Fix SDL mouse support in SGB mode
This commit is contained in:
parent
54c353830f
commit
f9cc7a3b46
@ -828,8 +828,8 @@ void run_gui(bool is_running)
|
|||||||
event.key.keysym.scancode = SDL_SCANCODE_ESCAPE;
|
event.key.keysym.scancode = SDL_SCANCODE_ESCAPE;
|
||||||
}
|
}
|
||||||
else if (gui_state == SHOWING_MENU) {
|
else if (gui_state == SHOWING_MENU) {
|
||||||
signed x = (event.button.x - rect.x / factor) * 160 / (rect.w / factor) - x_offset;
|
signed x = (event.button.x - rect.x / factor) * width / (rect.w / factor) - x_offset;
|
||||||
signed y = (event.button.y - rect.y / factor) * 144 / (rect.h / factor) - y_offset;
|
signed y = (event.button.y - rect.y / factor) * height / (rect.h / factor) - y_offset;
|
||||||
|
|
||||||
if (strcmp("CRT", configuration.filter) == 0) {
|
if (strcmp("CRT", configuration.filter) == 0) {
|
||||||
y = y * 8 / 7;
|
y = y * 8 / 7;
|
||||||
|
Loading…
Reference in New Issue
Block a user