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

  • From: Andreas Färber <andreas.faerber@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 28 Jun 2010 19:08:41 +0200

Am 28.06.2010 um 15:17 schrieb Wim van der Meer:

Index: src/kits/opengl/GLView.cpp
===================================================================
--- src/kits/opengl/GLView.cpp  (revision 37293)
+++ src/kits/opengl/GLView.cpp  (working copy)
@@ -461,6 +461,25 @@
// #pragma mark -


+// BeOS compatibility
+BGLView::BGLView(BRect rect, char* name, ulong resizingMode, ulong mode,
+       ulong options)
+       :
+ BView(rect, name, B_FOLLOW_ALL_SIDES, mode | B_WILL_DRAW | B_FRAME_EVENTS),
+       fGc(NULL),
+       fOptions(options),
+       fDitherCount(0),
+       fDrawLock("BGLView draw lock"),
+       fDisplayLock("BGLView display lock"),
+       fClipInfo(NULL),
+       fRenderer(NULL),
+       fRoster(NULL),
+       fDitherMap(NULL)
+{
+       fRoster = new GLRendererRoster(this, options);
+}

I don't know this class and how often it changes, but this still seems messy. Is there no way in C++ to call the other constructor rather than duplicating it?

Andreas

Other related posts: