Fixed auto Virtual Keyboard in 320X240 mode for windows

This commit is contained in:
fabio.olimpieri 2014-04-09 07:47:04 +00:00
parent 94dbf5dcb7
commit 73c1422280

View File

@ -1677,7 +1677,7 @@ inline void read_keyboard () {
#else #else
int x=0,y=0 ; int x=0,y=0 ;
SDL_GetMouseState(&x,&y); SDL_GetMouseState(&x,&y);
if ((x>64)&&(x<576)&&(y>90)&&(y<390)) if ((x>64/RATIO)&&(x<576/RATIO)&&(y>90/RATIO)&&(y<390/RATIO))
{ {
if (!ordenador.vk_is_active) virtkey_ir_activate(); if (!ordenador.vk_is_active) virtkey_ir_activate();
} }