Cleanup: renamed `do_draw_overlay` to `do_draw_paintcursor`
authorJeroen Bakker <j.bakker@atmind.nl>
Tue, 23 Jun 2020 10:07:50 +0000 (12:07 +0200)
committerJeroen Bakker <j.bakker@atmind.nl>
Tue, 23 Jun 2020 10:07:50 +0000 (12:07 +0200)
To make a better distinction with region overlay.

source/blender/editors/screen/area.c
source/blender/makesdna/DNA_screen_types.h
source/blender/windowmanager/intern/wm_draw.c

index 63366044f8846fc65102afcbf32613816e90f747..54a9eced0da5526e29650a5f80e7cbeeb1e33c3d 100644 (file)
@@ -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;
   }
 }
 
index d60409eb0d60e18f5f30dcc284fc3e51da36d852..eb9f1c1a80a89837b10ca817414f50a62d13dafb 100644 (file)
@@ -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. */
index c0a9d0ac453be0f08c74bf88fae998bb35f72edf..6a19ce62f50555c200855c3522f6ff2da6ede1e8 100644 (file)
@@ -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;