Removed rounding offset of x starting coordinate in ogl_ulinec which should hopefully unwanted horizontal offsets in Status Bar energy and afterburner gauges (without causing more problems) if Multisampling is applied
This commit is contained in:
parent
a055aecee5
commit
081e5d5e3c
|
@ -934,8 +934,8 @@ void ogl_ulinec(int left,int top,int right,int bot,int c)
|
|||
glEnableClientState(GL_VERTEX_ARRAY);
|
||||
glEnableClientState(GL_COLOR_ARRAY);
|
||||
|
||||
xo = (left + grd_curcanv->cv_bitmap.bm_x + 0.5) / (float)last_width;
|
||||
xf = (right + grd_curcanv->cv_bitmap.bm_x + 0.5) / (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;
|
||||
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 + 0.5) / (float)last_height;
|
||||
|
||||
|
|
|
@ -2393,10 +2393,10 @@ static void sb_draw_afterburner(const local_multires_gauge_graphic multires_gaug
|
|||
hud_gauge_bitblt(SB_AFTERBURNER_GAUGE_X, SB_AFTERBURNER_GAUGE_Y, SB_GAUGE_AFTERBURNER, multires_gauge_graphic);
|
||||
|
||||
const auto color = 0;
|
||||
const int erase_x0 = i2f(HUD_SCALE_X(SB_AFTERBURNER_GAUGE_X - 1));
|
||||
const int erase_x0 = i2f(HUD_SCALE_X(SB_AFTERBURNER_GAUGE_X));
|
||||
const int erase_x1 = i2f(HUD_SCALE_X(SB_AFTERBURNER_GAUGE_X + (SB_AFTERBURNER_GAUGE_W)));
|
||||
const int erase_y_base = HUD_SCALE_Y(SB_AFTERBURNER_GAUGE_Y);
|
||||
for (int i = HUD_SCALE_Y(fixmul((f1_0 - Afterburner_charge), SB_AFTERBURNER_GAUGE_H - 1)); i-- > 0;)
|
||||
for (int i = HUD_SCALE_Y(fixmul((f1_0 - Afterburner_charge), SB_AFTERBURNER_GAUGE_H)); i-- > 0;)
|
||||
{
|
||||
const int erase_y = i2f(erase_y_base + i);
|
||||
gr_uline(erase_x0, erase_y, erase_x1, erase_y, color);
|
||||
|
|
Loading…
Reference in a new issue