Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_edit.c
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
| #include "ED_screen_types.h" | #include "ED_screen_types.h" | ||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "WM_message.h" | #include "WM_message.h" | ||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| #include "../../../../intern/clog/CLG_log.h" | |||||
| #include "screen_intern.h" /* own module include */ | #include "screen_intern.h" /* own module include */ | ||||
| static CLG_LogRef LOG = {"screen"}; | |||||
| /* adds no space data */ | /* adds no space data */ | ||||
| static ScrArea *screen_addarea_ex(ScrAreaMap *area_map, | static ScrArea *screen_addarea_ex(ScrAreaMap *area_map, | ||||
| ScrVert *bottom_left, | ScrVert *bottom_left, | ||||
| ScrVert *top_left, | ScrVert *top_left, | ||||
| ScrVert *top_right, | ScrVert *top_right, | ||||
| ScrVert *bottom_right, | ScrVert *bottom_right, | ||||
| short spacetype) | short spacetype) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 446 Lines • ▼ Show 20 Lines | if (!G.background) { | ||||
| } | } | ||||
| /* wake up animtimer */ | /* wake up animtimer */ | ||||
| if (screen->animtimer) { | if (screen->animtimer) { | ||||
| WM_event_timer_sleep(wm, win, screen->animtimer, false); | WM_event_timer_sleep(wm, win, screen->animtimer, false); | ||||
| } | } | ||||
| } | } | ||||
| if (G.debug & G_DEBUG_EVENTS) { | /* we can print more information, add as needed */ | ||||
| printf("%s: set screen\n", __func__); | CLOG_VERBOSE(&LOG, 0, "set screen (%p)", screen); | ||||
| } | |||||
| screen->do_refresh = false; | screen->do_refresh = false; | ||||
| /* prevent multiwin errors */ | /* prevent multiwin errors */ | ||||
| screen->winid = win->winid; | screen->winid = win->winid; | ||||
| screen->context = ed_screen_context; | screen->context = ed_screen_context; | ||||
| } | } | ||||
| /* file read, set all screens, ... */ | /* file read, set all screens, ... */ | ||||
| ▲ Show 20 Lines • Show All 736 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (ScrArea *, old, &screen->areabase) { | ||||
| /* clear full screen state */ | /* clear full screen state */ | ||||
| old->full = NULL; | old->full = NULL; | ||||
| } | } | ||||
| area->full = NULL; | area->full = NULL; | ||||
| if (fullsa == NULL) { | if (fullsa == NULL) { | ||||
| if (G.debug & G_DEBUG) { | CLOG_WARN(&LOG, "something wrong in areafullscreen"); | ||||
| printf("%s: something wrong in areafullscreen\n", __func__); | |||||
| } | |||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (state == SCREENFULL) { | if (state == SCREENFULL) { | ||||
| /* unhide global areas */ | /* unhide global areas */ | ||||
| LISTBASE_FOREACH (ScrArea *, glob_area, &win->global_areas.areabase) { | LISTBASE_FOREACH (ScrArea *, glob_area, &win->global_areas.areabase) { | ||||
| glob_area->global->flag &= ~GLOBAL_AREA_IS_HIDDEN; | glob_area->global->flag &= ~GLOBAL_AREA_IS_HIDDEN; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines | |||||