bugfix [#20083] Wrong position of splash screen on dualhead

This commit is contained in:
2009-11-30 13:58:27 +00:00
parent 0f24af7506
commit ab4a141560
2 changed files with 9 additions and 2 deletions

View File

@@ -160,7 +160,11 @@ void WM_init_splash(bContext *C)
wmWindow *prevwin= CTX_wm_window(C);
if(wm->windows.first) {
CTX_wm_window_set(C, wm->windows.first);
CTX_wm_window_set(C, wm->windows.first);
/* needed to get the right screen size for centering the splash */
wm_window_process_events(C);
WM_operator_name_call(C, "WM_OT_splash", WM_OP_INVOKE_DEFAULT, NULL);
CTX_wm_window_set(C, prevwin);
}

View File

@@ -890,8 +890,11 @@ int main(int argc, char **argv)
WM_exit(C);
}
if(!G.background && !file_loaded)
if(!G.background && !file_loaded) {
/* careful, calls wm_window_process_events but seems safe
* since its called first in WM_main */
WM_init_splash(C);
}
WM_main(C);