Difference for arch/ogl/gr.c from version 1.28 to 1.29


version 1.28 version 1.29
Line 436
 
Line 436
 // 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();
 // }  // }
Line 462
 
Line 462
 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));

Legend:
line(s) removed in v.1.28 
line(s) changed
 line(s) added in v.1.29