X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=6dcf54967fb329fe977934382ff90a55ed10c140;hb=aabdde1f5e4f678c5896c48454acdbe3f6c0535c;hp=dc7dba8b2db2c763e19ee8cc274c38d73cc50b06;hpb=e617cc94b68c43105fc3c06d26d31c9bc99161a4;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index dc7dba8b..6dcf5496 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -320,8 +320,9 @@ void InitGfxOtherSettings(void) gfx.cursor_mode_override = CURSOR_UNDEFINED; gfx.cursor_mode_final = gfx.cursor_mode; - gfx.mouse_x = 0; - gfx.mouse_y = 0; + // prevent initially displaying custom mouse cursor in upper left corner + gfx.mouse_x = POS_OFFSCREEN; + gfx.mouse_y = POS_OFFSCREEN; } void InitTileCursorInfo(void) @@ -1691,7 +1692,7 @@ KeyMod HandleKeyModState(Key key, int key_status) { KeyMod new_modifier = KMOD_None; - switch(key) + switch (key) { case KSYM_Shift_L: new_modifier = KMOD_Shift_L;