diff options
| author | Simon <simon@hardwired.org.uk> | 2010-08-26 11:20:16 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-08-26 11:20:16 (GMT) |
| commit | 72a1d17fe42ccc74ac25328dcd272b7a2bf6856c (patch) | |
| tree | a064555f1694f7c763eb3f42c56fe92ea016713b /powder.c | |
| parent | 5751fea35f31640fddfaea1459503e366ae39729 (diff) | |
| download | powder-72a1d17fe42ccc74ac25328dcd272b7a2bf6856c.zip powder-72a1d17fe42ccc74ac25328dcd272b7a2bf6856c.tar.gz | |
This build works, but still a work in progress
Diffstat (limited to 'powder.c')
| -rw-r--r-- | powder.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -37,7 +37,7 @@ #include <unistd.h> #endif -#include "utils.h" +#include "misc.h" #include "font.h" #include "defines.h" #include "powder.h" @@ -8619,15 +8619,7 @@ int main(int argc, char *argv[]) { draw_menu(vid_buf, i, active_menu); } -#ifndef MENUV3 - for(i=0; i<SC_TOTAL; i++) - { - if(!b&&x>=sdl_scale*(XRES+1) && x<sdl_scale*(XRES+BARSIZE-1) &&y>= sdl_scale*(((YRES/SC_TOTAL)*i)+((YRES/SC_TOTAL)/2)-2) && y<sdl_scale*(((YRES/SC_TOTAL)*i)+((YRES/SC_TOTAL)/2)+12)) - { - menu_ui(vid_buf, i, &sl, &sr); - } - } -#else + for(i=0; i<SC_TOTAL; i++) { if(!b&&x>=sdl_scale*(XRES-2) && x<sdl_scale*(XRES+BARSIZE-1) &&y>= sdl_scale*((i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16)) && y<sdl_scale*((i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16)+15)) @@ -8636,7 +8628,6 @@ int main(int argc, char *argv[]) } } menu_ui_v3(vid_buf, active_menu, &sl, &sr, b, bq, x, y); -#endif if(zoom_en && x>=sdl_scale*zoom_wx && y>=sdl_scale*zoom_wy && x<sdl_scale*(zoom_wx+ZFACTOR*ZSIZE) |
