better not process events early, could cause troubles later.
[blender.git] / source / blender / editors / interface / interface.c
index 23ad50d448b0628ec7b43b1636e782e0be0157f6..70bef5534a19be30e0b0e5f5db5d72ceef4e186e 100644 (file)
@@ -320,7 +320,11 @@ static void ui_centered_bounds_block(const bContext *C, uiBlock *block)
        int startx, starty;
        int width, height;
        
        int startx, starty;
        int width, height;
        
-       wm_window_get_size(window, &xmax, &ymax);
+       /* note: this is used for the splash where window bounds event has not been
+        * updated by ghost, get the window bounds from ghost directly */
+
+       // wm_window_get_size(window, &xmax, &ymax);
+       wm_window_get_size_ghost(window, &xmax, &ymax);
        
        ui_bounds_block(block);
        
        
        ui_bounds_block(block);