[haiku-commits] r35806 - in haiku/trunk: headers/os/opengl src/kits/opengl

  • From: philippe.houdoin@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 11 Mar 2010 00:03:03 +0100 (CET)

Author: phoudoin
Date: 2010-03-11 00:03:03 +0100 (Thu, 11 Mar 2010)
New Revision: 35806
Changeset: http://dev.haiku-os.org/changeset/35806/haiku

Modified:
   haiku/trunk/headers/os/opengl/GLView.h
   haiku/trunk/src/kits/opengl/GLView.cpp
Log:
Made BGLView by default freely resizable by layout manager. I'm not sure I 
didn't break binary compatibility, please review.

Modified: haiku/trunk/headers/os/opengl/GLView.h
===================================================================
--- haiku/trunk/headers/os/opengl/GLView.h      2010-03-10 22:25:01 UTC (rev 
35805)
+++ haiku/trunk/headers/os/opengl/GLView.h      2010-03-10 23:03:03 UTC (rev 
35806)
@@ -79,6 +79,9 @@
                        void    EnableDirectMode(bool enabled);
 
                        void*   getGC() { return fGc; } // ???
+                       
+       virtual void    GetPreferredSize(float* width, float* height);
+       
 private:
 
        virtual void    _ReservedGLView1();

Modified: haiku/trunk/src/kits/opengl/GLView.cpp
===================================================================
--- haiku/trunk/src/kits/opengl/GLView.cpp      2010-03-10 22:25:01 UTC (rev 
35805)
+++ haiku/trunk/src/kits/opengl/GLView.cpp      2010-03-10 23:03:03 UTC (rev 
35806)
@@ -303,6 +303,16 @@
 
 
 void
+BGLView::GetPreferredSize(float* _width, float* _height)
+{
+       if (_width)
+               *_width = 0;
+       if (_height)
+               *_height = 0;
+}
+
+
+void
 BGLView::Show()
 {
        BView::Show();


Other related posts: