diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-14 12:28:02 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-14 12:28:02 (GMT) |
| commit | 16f014b06ae69c17f6ea2c817e2830023880bbdf (patch) | |
| tree | c79383f120e76e50d22a510bcf6fcce966420520 /src/interface.c | |
| parent | d0f236d6b9e7c3de6998b8394b0dfb9241f727cf (diff) | |
| download | powder-16f014b06ae69c17f6ea2c817e2830023880bbdf.zip powder-16f014b06ae69c17f6ea2c817e2830023880bbdf.tar.gz | |
Move wall drawing to graphics.c
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface.c b/src/interface.c index a60e2aa..fd4e7ff 100644 --- a/src/interface.c +++ b/src/interface.c @@ -1725,7 +1725,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int *dae, int b, int bq x = XRES-BARSIZE-18; y += 19; }*/ - x -= draw_tool_xy(vid_buf, x, y, n, mwalls[n-UI_WALLSTART].colour)+5; + x -= draw_tool_xy(vid_buf, x, y, n, wtypes[n-UI_WALLSTART].colour)+5; if (!bq && mx>=x+32 && mx<x+58 && my>=y && my< y+15) { drawrect(vid_buf, x+30, y-1, 29, 17, 255, 55, 55, 255); @@ -1762,7 +1762,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int *dae, int b, int bq x = XRES-BARSIZE-18; y += 19; }*/ - x -= draw_tool_xy(vid_buf, x, y, n, mwalls[n-UI_WALLSTART].colour)+5; + x -= draw_tool_xy(vid_buf, x, y, n, wtypes[n-UI_WALLSTART].colour)+5; if (!bq && mx>=x+32 && mx<x+58 && my>=y && my< y+15) { drawrect(vid_buf, x+30, y-1, 29, 17, 255, 55, 55, 255); @@ -1869,7 +1869,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int *dae, int b, int bq } else if (i==SC_WALL||(i==SC_SPECIAL&&h>=UI_WALLSTART)) { - drawtext(vid_buf, XRES-textwidth((char *)mwalls[h-UI_WALLSTART].descs)-BARSIZE, sy-10, (char *)mwalls[h-UI_WALLSTART].descs, 255, 255, 255, 255); + drawtext(vid_buf, XRES-textwidth((char *)wtypes[h-UI_WALLSTART].descs)-BARSIZE, sy-10, (char *)wtypes[h-UI_WALLSTART].descs, 255, 255, 255, 255); } else { @@ -4598,4 +4598,4 @@ void simulation_ui(pixel * vid_buf) if (!b) break; } -}
\ No newline at end of file +} |
