David Rose 16 lat temu
rodzic
commit
53274c354a

+ 10 - 1
panda/src/display/config_display.cxx

@@ -278,7 +278,16 @@ ConfigVariableBool fullscreen
 ("fullscreen", false);
 
 ConfigVariableBool undecorated
-("undecorated", false);
+("undecorated", false,
+ PRC_DESC("This specifies the default value of the 'undecorated' window "
+          "property.  When this is true, the default window is created "
+          "without a title bar or resizable border."));
+
+ConfigVariableBool win_fixed_size
+("win-fixed-size", false,
+ PRC_DESC("This specifies the default value of the 'fixed_size' window "
+          "property.  When this is true, the default window is created "
+          "without a resizable border."));
 
 ConfigVariableBool cursor_hidden
 ("cursor-hidden", false);

+ 1 - 0
panda/src/display/config_display.h

@@ -68,6 +68,7 @@ extern EXPCL_PANDA_DISPLAY ConfigVariableInt win_size;
 extern EXPCL_PANDA_DISPLAY ConfigVariableInt win_origin;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool fullscreen;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool undecorated;
+extern EXPCL_PANDA_DISPLAY ConfigVariableBool win_fixed_size;
 extern EXPCL_PANDA_DISPLAY ConfigVariableBool cursor_hidden;
 extern EXPCL_PANDA_DISPLAY ConfigVariableFilename icon_filename;
 extern EXPCL_PANDA_DISPLAY ConfigVariableFilename cursor_filename;

+ 1 - 0
panda/src/display/windowProperties.cxx

@@ -74,6 +74,7 @@ get_config_properties() {
 
   props.set_fullscreen(fullscreen);
   props.set_undecorated(undecorated);
+  props.set_fixed_size(win_fixed_size);
   props.set_cursor_hidden(cursor_hidden);
   if (!icon_filename.empty()) {
     props.set_icon_filename(icon_filename);