version 1.27 | | version 1.28 |
---|
| | |
int c=COLOR; | | int c=COLOR; |
| | |
xo=(left+grd_curcanv->cv_bitmap.bm_x)/(float)last_width; | | xo=(left+grd_curcanv->cv_bitmap.bm_x)/(float)last_width; |
xf=(right+grd_curcanv->cv_bitmap.bm_x)/(float)last_width; | | xf=(right+1+grd_curcanv->cv_bitmap.bm_x)/(float)last_width; |
yo=1.0-(top+grd_curcanv->cv_bitmap.bm_y)/(float)last_height; | | yo=1.0-(top+grd_curcanv->cv_bitmap.bm_y)/(float)last_height; |
yf=1.0-(bot+grd_curcanv->cv_bitmap.bm_y)/(float)last_height; | | yf=1.0-(bot+1+grd_curcanv->cv_bitmap.bm_y)/(float)last_height; |
| | |
OGL_DISABLE(TEXTURE_2D); | | OGL_DISABLE(TEXTURE_2D); |
glColor3f(CPAL2Tr(c),CPAL2Tg(c),CPAL2Tb(c)); | | glColor3f(CPAL2Tr(c),CPAL2Tg(c),CPAL2Tb(c)); |