summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-06-21 11:29:57 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-25 14:51:46 (GMT)
commit2f594c6bf1291fe9d466c84e88b578802c813a2d (patch)
tree91a94a96c3ca93c98c7885b7c8e5e6816ee80082 /src/interface.c
parent4043dba74c77d68457c90bb9be32e2f2c39a2758 (diff)
downloadpowder-2f594c6bf1291fe9d466c84e88b578802c813a2d.zip
powder-2f594c6bf1291fe9d466c84e88b578802c813a2d.tar.gz
Fix issues with local saving when using scale:2
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 6a6d29f..1cbf0d6 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -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);