Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_draw.c
| Context not available. | |||||
| # include "BKE_subsurf.h" | # include "BKE_subsurf.h" | ||||
| #endif | #endif | ||||
| /* ******************* paint cursor *************** */ | /* ******************* paint cursor *************** */ | ||||
| static void wm_paintcursor_draw(bContext *C, ScrArea *sa, ARegion *ar) | static void wm_paintcursor_draw(bContext *C, ScrArea *sa, ARegion *ar) | ||||
| Context not available. | |||||
| } | } | ||||
| screen->do_draw = false; | screen->do_draw = false; | ||||
| #ifdef DEBUG_WINDOW_POSITION | |||||
| /* window position debugging */ | |||||
| static rcti last_pos[10]; | |||||
| rcti ghost_rect; | |||||
| int l, t, r, b; | |||||
| GHOST_RectangleHandle rect = GHOST_GetWindowBounds(win->ghostwin); | |||||
| GHOST_GetRectangle(rect, &l, &t, &r, &b); | |||||
| BLI_rcti_init(&ghost_rect, l, t, r, b); | |||||
| if (!BLI_rcti_compare(&last_pos[win->type], &ghost_rect)) { | |||||
| printf("window %d: (%d,%d)-(%d,%d)\n", win->type, l, t, r, b); | |||||
| last_pos[win->type] = ghost_rect; | |||||
| } | |||||
| #endif | |||||
| } | } | ||||
| /****************** main update call **********************/ | /****************** main update call **********************/ | ||||
| Context not available. | |||||