Bug fix (from own collection)
After using clip-safe pixeldraw from glutil.c (preview render, bg picture) the current viewport had to be re-set. Not doing so caused a 1 pixel offset for live updates buttons (on mouse over)
This commit is contained in:
@@ -447,6 +447,7 @@ static void draw_bgpic(void)
|
||||
glDisable(GL_BLEND);
|
||||
if(G.zbuf) glEnable(GL_DEPTH_TEST);
|
||||
|
||||
areawinset(curarea->win); // restore viewport / scissor
|
||||
}
|
||||
|
||||
void timestr(double time, char *str)
|
||||
|
||||
@@ -276,6 +276,9 @@ static void end_previewrect(void)
|
||||
glPopMatrix();
|
||||
|
||||
glPixelZoom(1.0, 1.0);
|
||||
|
||||
areawinset(curarea->win); // restore viewport / scissor
|
||||
|
||||
}
|
||||
|
||||
static void display_pr_scanline(unsigned int *rect, int recty)
|
||||
|
||||
Reference in New Issue
Block a user