Cleanup: renamed do_draw_overlay to do_draw_paintcursor
To make a better distinction with region overlay.
This commit is contained in:
@@ -646,7 +646,7 @@ void ED_region_tag_redraw(ARegion *region)
|
||||
void ED_region_tag_redraw_cursor(ARegion *region)
|
||||
{
|
||||
if (region) {
|
||||
region->do_draw_overlay = RGN_DRAW;
|
||||
region->do_draw_paintcursor = RGN_DRAW;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -427,7 +427,7 @@ typedef struct ARegion {
|
||||
/** Private, cached notifier events. */
|
||||
short do_draw;
|
||||
/** Private, cached notifier events. */
|
||||
short do_draw_overlay;
|
||||
short do_draw_paintcursor;
|
||||
/** Private, set for indicate drawing overlapped. */
|
||||
short overlap;
|
||||
/** Temporary copy of flag settings for clean fullscreen. */
|
||||
|
||||
@@ -931,9 +931,9 @@ static bool wm_draw_update_test_window(Main *bmain, bContext *C, wmWindow *win)
|
||||
bool do_draw = false;
|
||||
|
||||
for (region = screen->regionbase.first; region; region = region->next) {
|
||||
if (region->do_draw_overlay) {
|
||||
if (region->do_draw_paintcursor) {
|
||||
screen->do_draw_paintcursor = true;
|
||||
region->do_draw_overlay = false;
|
||||
region->do_draw_paintcursor = false;
|
||||
}
|
||||
if (region->visible && region->do_draw) {
|
||||
do_draw = true;
|
||||
|
||||
Reference in New Issue
Block a user