diff --git a/headers/os/opengl/GLView.h b/headers/os/opengl/GLView.h index e47ee57985..9084b5de7d 100644 --- a/headers/os/opengl/GLView.h +++ b/headers/os/opengl/GLView.h @@ -79,6 +79,9 @@ virtual status_t GetSupportedSuites(BMessage *data); void EnableDirectMode(bool enabled); void* getGC() { return fGc; } // ??? + + virtual void GetPreferredSize(float* width, float* height); + private: virtual void _ReservedGLView1(); diff --git a/src/kits/opengl/GLView.cpp b/src/kits/opengl/GLView.cpp index 21753b15a4..f10aa6c50c 100644 --- a/src/kits/opengl/GLView.cpp +++ b/src/kits/opengl/GLView.cpp @@ -302,6 +302,16 @@ BGLView::SetResizingMode(uint32 mode) } +void +BGLView::GetPreferredSize(float* _width, float* _height) +{ + if (_width) + *_width = 0; + if (_height) + *_height = 0; +} + + void BGLView::Show() {