From ba59ba8b7c9fc12ba9ff349c1d35d73fbfc54624 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 22 Oct 2011 17:33:04 +0100 Subject: [PATCH] Fix Air vel display --- src/graphics.c | 93 +++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 77 insertions(+), 16 deletions(-) diff --git a/src/graphics.c b/src/graphics.c index 9b94fae3c..e3a27c784 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -27,7 +27,7 @@ unsigned cmode = CM_FIRE; SDL_Surface *sdl_scrn; int sdl_scale = 1; -GLuint zoomTex, vidBuf, airBuf, fireAlpha, glowAlpha, blurAlpha, fireProg, partsFboTex, partsFbo, lensProg, partsTFX, partsTFY; +GLuint airProg, zoomTex, vidBuf, airBuf, fireAlpha, glowAlpha, blurAlpha, fireProg, partsFboTex, partsFbo, lensProg, partsTFX, partsTFY, airPV, airVY, airVX; int sandcolour_r = 0; int sandcolour_g = 0; @@ -1109,9 +1109,9 @@ void draw_icon(pixel *vid_buf, int x, int y, char ch, int flag) drawtext(vid_buf, x+3, y+2, t, 255, 255, 255, 255); } } -pixel air_buf[YRES/CELL][XRES/CELL]; void draw_air(pixel *vid) { +#ifndef OGLR int x, y, i, j; pixel c; if (cmode == CM_PERS)//this should never happen anyway @@ -1173,29 +1173,45 @@ void draw_air(pixel *vid) c = PIXRGB(r, g, b); } } -#ifdef OGLR - air_buf[y][x] = c; -#else for (j=0; j