Browse Source

removed set_fullscreen, added is_fullscreen impl

cxgeorge 23 years ago
parent
commit
d2c2933eb7
2 changed files with 5 additions and 13 deletions
  1. 5 12
      panda/src/display/graphicsWindow.I
  2. 0 1
      panda/src/display/graphicsWindow.h

+ 5 - 12
panda/src/display/graphicsWindow.I

@@ -108,18 +108,6 @@ set_border(bool border) {
   _border = border;
 }
 
-////////////////////////////////////////////////////////////////////
-//     Function: GraphicsWindow::Properties::set_fullscreen
-//       Access: Published
-//  Description: Specifies whether the window should be opened in
-//               fullscreen mode (true) or normal windowed mode
-//               (false, the default).
-////////////////////////////////////////////////////////////////////
-INLINE void GraphicsWindow::Properties::
-set_fullscreen(bool fullscreen) {
-  _fullscreen = fullscreen;
-}
-
 /*
 ////////////////////////////////////////////////////////////////////
 //     Function: GraphicsWindow::Properties::set_cursor_visible
@@ -209,6 +197,11 @@ get_yorg() const {
   return (_props._yorg);
 }
 
+INLINE bool GraphicsWindow::
+is_fullscreen() const {
+  return (_props._fullscreen);
+}
+
 ////////////////////////////////////////////////////////////////////
 //     Function: GraphicsWindow::get_gsg
 //       Access: Published

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

@@ -84,7 +84,6 @@ PUBLISHED:
     INLINE void set_size(int xsize, int ysize);
     INLINE void set_title(const string &title);
     INLINE void set_border(bool border);
-    INLINE void set_fullscreen(bool fullscreen);
     INLINE void set_mask(uint mask);
     INLINE void set_bit_depth(int want_depth_bits, int want_color_bits);