Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-12-30 20:29:13 +0300
committerTon Roosendaal <ton@blender.org>2007-12-30 20:29:13 +0300
commitf25ce8d0fff3a05c7eeb0d75fe37601f42072edc (patch)
tree5c9d202726c11b0336cf849b6ef114a1b565ce36 /source
parenta80b8352c6860db911057a1e7a4eab3c45ff80b8 (diff)
Removed silly Global windowstate variable.
Result: windows open default with decoration (or as your default WM defines). Todo: platform maintainers re-implement a cogent way for giving commandline options for defaults, and test how this can be stored even
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 9ddf6fc078b..0e135f9942f 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -178,11 +178,8 @@ static void wm_window_open(wmWindowManager *wm, char *title, wmWindow *win)
wm_get_screensize(&scr_w, &scr_h);
posy= (scr_h - win->posy - win->sizey);
- if (win->windowstate == G_WINDOWSTATE_FULLSCREEN)
- inital_state = GHOST_kWindowStateFullScreen;
- else if (win->windowstate == G_WINDOWSTATE_BORDER)
- inital_state = GHOST_kWindowStateMaximized;
- else
+// inital_state = GHOST_kWindowStateFullScreen;
+// inital_state = GHOST_kWindowStateMaximized;
inital_state = GHOST_kWindowStateNormal;
#ifdef __APPLE__
@@ -245,7 +242,7 @@ void wm_window_add_ghostwindows(wmWindowManager *wm)
win->posy= prefstay;
win->sizex= prefsizx;
win->sizey= prefsizy;
- win->windowstate= G.windowstate;
+ win->windowstate= 0;
}
wm_window_open(wm, "Blender", win);
}