X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;fp=src%2Flibgame%2Fsdl.c;h=b75f2c8c6e58f27c5c359bbf573df1cec32cc525;hp=1614b1e2fe4a316130af2ee2d8c0c6baa3483134;hb=150d316a89345044484cdcb2d875c682008fff64;hpb=3f5bead76851508f3e8d6130843ecab51a923232 diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 1614b1e2..b75f2c8c 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -151,6 +151,9 @@ static void UpdateScreenExt(SDL_Rect *rect, boolean with_frame_delay) dst_rect1 = &dst_rect_screen; #if defined(HAS_SCREEN_KEYBOARD) + SDL_Rect src_rect_up = { 0, 0, video.width, video.height }; + SDL_Rect dst_rect_up = dst_rect_screen; + if (video.shifted_up || video.shifted_up_delay) { int time_current = SDL_GetTicks(); @@ -171,8 +174,9 @@ static void UpdateScreenExt(SDL_Rect *rect, boolean with_frame_delay) video.shifted_up_delay = 0; } - SDL_Rect src_rect_up = { 0, pos, video.width, video.height - pos }; - SDL_Rect dst_rect_up = { xoff, yoff, video.width, video.height - pos }; + src_rect_up.y = pos; + src_rect_up.h = video.height - pos; + dst_rect_up.h = video.height - pos; if (video.screen_rendering_mode == SPECIAL_RENDERING_TARGET || video.screen_rendering_mode == SPECIAL_RENDERING_DOUBLE)