added a fullscreen button in the top header (windows only)
written by Florian Eggenberger.
This commit is contained in:
@@ -121,6 +121,9 @@ typedef struct Global {
|
||||
/* this variable is written to / read from FileGlobal->fileflags */
|
||||
int fileflags;
|
||||
|
||||
/* save the allowed windowstate of blender when using -W or -w */
|
||||
int windowstate;
|
||||
|
||||
/* Janco's playing ground */
|
||||
struct bSoundListener* listener;
|
||||
|
||||
@@ -189,6 +192,11 @@ typedef struct Global {
|
||||
#define G_FILE_SIGN (1 << G_FILE_SIGN_BIT)
|
||||
#define G_FILE_PUBLISH (1 << G_FILE_PUBLISH_BIT)
|
||||
|
||||
/* G.windowstate */
|
||||
#define G_WINDOWSTATE_USERDEF 0
|
||||
#define G_WINDOWSTATE_BORDER 1
|
||||
#define G_WINDOWSTATE_FULLSCREEN 2
|
||||
|
||||
/* G.simulf */
|
||||
#define G_LOADFILE 2
|
||||
#define G_RESTART 4
|
||||
|
@@ -207,6 +207,10 @@ void initglobals(void)
|
||||
|
||||
sprintf(versionstr, "www.blender.org %d", G.version);
|
||||
|
||||
#ifdef _WIN32 // FULLSCREEN
|
||||
G.windowstate = G_WINDOWSTATE_USERDEF;
|
||||
#endif
|
||||
|
||||
clear_workob(); /* object.c */
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user