summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-06-16 21:03:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-25 14:50:14 (GMT)
commitdbf6dcd35b76aea13464642a8d9f786e7cb84d65 (patch)
treeba46057580aa24528b5a5760c0504df86e19ed47 /src/interface.c
parenta054a784af54e2ca740d046f8bed7f52b71facee (diff)
downloadpowder-dbf6dcd35b76aea13464642a8d9f786e7cb84d65.zip
powder-dbf6dcd35b76aea13464642a8d9f786e7cb84d65.tar.gz
Decor brush shape, and fix big thumb not changing when page changed
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c
index 62c4b00..6a6d29f 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -2998,6 +2998,7 @@ int search_ui(pixel *vid_buf)
page_count = search_results(results, last_own||svf_admin||svf_mod);
memset(thumb_drawn, 0, sizeof(thumb_drawn));
memset(v_buf, 0, ((YRES+MENUSIZE)*(XRES+BARSIZE))*PIXELSIZE);
+ nmp = -1;
ui_richtext_settext(server_motd, &motd);
motd.x = (XRES-textwidth(motd.printstr))/2;
@@ -5073,6 +5074,10 @@ unsigned int decorations_ui(pixel *vid_buf,int *bsx,int *bsy, unsigned int saved
*bsy = 0;
}
}
+ if (sdl_key==SDLK_TAB)
+ {
+ CURRENT_BRUSH =(CURRENT_BRUSH + 1)%BRUSH_NUM ;
+ }
if (!sdl_zoom_trig && zoom_en==1)
{