Fix issues with local saving when using scale:2
This commit is contained in:
parent
4043dba74c
commit
2f594c6bf1
@ -5217,7 +5217,6 @@ int save_filename_ui(pixel *vid_buf)
|
||||
mx /= sdl_scale;
|
||||
my /= sdl_scale;
|
||||
|
||||
b = SDL_GetMouseState(&mx, &my);
|
||||
clearrect(vid_buf, x0-2, y0-2, xsize+4, ysize+4);
|
||||
drawrect(vid_buf, x0, y0, xsize, ysize, 192, 192, 192, 255);
|
||||
drawtext(vid_buf, x0+8, y0+8, "Filename:", 255, 255, 255, 255);
|
||||
@ -5336,6 +5335,8 @@ void catalogue_ui(pixel * vid_buf)
|
||||
while (!sdl_poll())
|
||||
{
|
||||
b = SDL_GetMouseState(&mx, &my);
|
||||
mx /= sdl_scale;
|
||||
my /= sdl_scale;
|
||||
sprintf(savetext, "Found %d save%s", rescount, rescount==1?"":"s");
|
||||
clearrect(vid_buf, x0-2, y0-2, xsize+4, ysize+4);
|
||||
clearrect(vid_buf2, x0-2, y0-2, xsize+4, ysize+4);
|
||||
|
Reference in New Issue
Block a user