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