OpenGL: remove glaDrawBorderCorners
This helper function was marked DEPRECATED since it uses old OpenGL calls. Part of T49043
This commit is contained in:
parent
0215b3e957
commit
87d5f670a0
|
@ -282,8 +282,6 @@ void glaDrawImBuf_glsl_ctx_clipping(const struct bContext *C,
|
|||
float clip_max_x, float clip_max_y,
|
||||
float zoom_x, float zoom_y);
|
||||
|
||||
void glaDrawBorderCorners(const struct rcti *border, float zoomx, float zoomy);
|
||||
|
||||
void immDrawBorderCorners(unsigned int pos, const struct rcti *border, float zoomx, float zoomy);
|
||||
|
||||
#endif /* __BIF_GLUTIL_H__ */
|
||||
|
|
|
@ -1100,44 +1100,6 @@ void cpack(unsigned int x)
|
|||
(((x) >> 16) & 0xFF));
|
||||
}
|
||||
|
||||
void glaDrawBorderCorners(const rcti *border, float zoomx, float zoomy)
|
||||
{
|
||||
/* DEPRECATED: use immDrawBorderCorners */
|
||||
float delta_x = 4.0f * UI_DPI_FAC / zoomx;
|
||||
float delta_y = 4.0f * UI_DPI_FAC / zoomy;
|
||||
|
||||
delta_x = min_ff(delta_x, border->xmax - border->xmin);
|
||||
delta_y = min_ff(delta_y, border->ymax - border->ymin);
|
||||
|
||||
/* left bottom corner */
|
||||
glBegin(GL_LINE_STRIP);
|
||||
glVertex2f(border->xmin, border->ymin + delta_y);
|
||||
glVertex2f(border->xmin, border->ymin);
|
||||
glVertex2f(border->xmin + delta_x, border->ymin);
|
||||
glEnd();
|
||||
|
||||
/* left top corner */
|
||||
glBegin(GL_LINE_STRIP);
|
||||
glVertex2f(border->xmin, border->ymax - delta_y);
|
||||
glVertex2f(border->xmin, border->ymax);
|
||||
glVertex2f(border->xmin + delta_x, border->ymax);
|
||||
glEnd();
|
||||
|
||||
/* right bottom corner */
|
||||
glBegin(GL_LINE_STRIP);
|
||||
glVertex2f(border->xmax - delta_x, border->ymin);
|
||||
glVertex2f(border->xmax, border->ymin);
|
||||
glVertex2f(border->xmax, border->ymin + delta_y);
|
||||
glEnd();
|
||||
|
||||
/* right top corner */
|
||||
glBegin(GL_LINE_STRIP);
|
||||
glVertex2f(border->xmax - delta_x, border->ymax);
|
||||
glVertex2f(border->xmax, border->ymax);
|
||||
glVertex2f(border->xmax, border->ymax - delta_y);
|
||||
glEnd();
|
||||
}
|
||||
|
||||
void immDrawBorderCorners(unsigned int pos, const rcti *border, float zoomx, float zoomy)
|
||||
{
|
||||
float delta_x = 4.0f * UI_DPI_FAC / zoomx;
|
||||
|
|
Loading…
Reference in New Issue