version 1.28 | | version 1.29 |
---|
| | |
// ogl_pal=gr_current_pal; | | // ogl_pal=gr_current_pal; |
glColor3f(CPAL2Tr(c),CPAL2Tg(c),CPAL2Tb(c)); | | glColor3f(CPAL2Tr(c),CPAL2Tg(c),CPAL2Tb(c)); |
// ogl_pal=gr_palette; | | // ogl_pal=gr_palette; |
glVertex2f((x+grd_curcanv->cv_bitmap.bm_x)/(float)last_width,1.0-(y+grd_curcanv->cv_bitmap.bm_y)/(float)last_height); | | glVertex2f((x+grd_curcanv->cv_bitmap.bm_x+0.5)/(float)last_width,1.0-(y+grd_curcanv->cv_bitmap.bm_y+0.5)/(float)last_height); |
// glVertex2f(x/((float)last_width+1),1.0-y/((float)last_height+1)); | | // glVertex2f(x/((float)last_width+1),1.0-y/((float)last_height+1)); |
glEnd(); | | glEnd(); |
// } | | // } |
| | |
void ogl_ulinec(int left,int top,int right,int bot,int c){ | | void ogl_ulinec(int left,int top,int right,int bot,int c){ |
GLfloat xo,yo,xf,yf; | | GLfloat xo,yo,xf,yf; |
| | |
xo=(left+grd_curcanv->cv_bitmap.bm_x)/(float)last_width; | | xo=(left+grd_curcanv->cv_bitmap.bm_x+0.5)/(float)last_width; |
xf=(right+grd_curcanv->cv_bitmap.bm_x)/(float)last_width; | | xf=(right+grd_curcanv->cv_bitmap.bm_x+0.5)/(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+0.5)/(float)last_height; |
yf=1.0-(bot+grd_curcanv->cv_bitmap.bm_y)/(float)last_height; | | yf=1.0-(bot+grd_curcanv->cv_bitmap.bm_y+0.5)/(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)); |