Fixing BeOS binary compatibility.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37296 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
919f9c41da
commit
b3df2c9a87
|
@ -118,6 +118,12 @@ private:
|
|||
|
||||
void _LockDraw();
|
||||
void _UnlockDraw();
|
||||
|
||||
// BeOS compatibility
|
||||
private:
|
||||
BGLView(BRect rect, char* name,
|
||||
ulong resizingMode, ulong mode,
|
||||
ulong options);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ using namespace BPrivate;
|
|||
|
||||
|
||||
FlurryView::FlurryView(BRect bounds)
|
||||
: BGLView(bounds, NULL, B_FOLLOW_ALL, B_FRAME_EVENTS | B_WILL_DRAW,
|
||||
: BGLView(bounds, (const char *)NULL, B_FOLLOW_ALL, B_FRAME_EVENTS | B_WILL_DRAW,
|
||||
BGL_RGB | BGL_ALPHA | BGL_DEPTH | BGL_DOUBLE),
|
||||
fOldFrameTime(-1.0),
|
||||
fFlurryInfo_t(NULL)
|
||||
|
|
|
@ -461,6 +461,25 @@ void BGLView::_ReservedGLView8() {}
|
|||
// #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);
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ __glutDefaultReshape(int width, int height)
|
|||
GlutWindow::GlutWindow(GlutWindow *nparent, const char *name,
|
||||
int x, int y, int width, int height, ulong options)
|
||||
: BGLView(nparent != NULL ? BRect(x, y, x + width - 1, y + height - 1)
|
||||
: BRect(0, 0, width - 1, height - 1), const_cast<char*>(name),
|
||||
: BRect(0, 0, width - 1, height - 1), name,
|
||||
nparent != NULL ? B_FOLLOW_NONE : B_FOLLOW_ALL_SIDES,
|
||||
B_WILL_DRAW | B_FRAME_EVENTS | B_FULL_UPDATE_ON_RESIZE | B_PULSE_NEEDED,
|
||||
options)
|
||||
|
|
|
@ -29,7 +29,7 @@ OpenGLView::OpenGLView()
|
|||
const float kInset = 10;
|
||||
BRect dummy(0, 0, 2, 2);
|
||||
|
||||
fGLView = new BGLView(dummy, (char*) "gl info", B_FOLLOW_NONE, 0,
|
||||
fGLView = new BGLView(dummy, "gl info", B_FOLLOW_NONE, 0,
|
||||
BGL_RGB | BGL_DOUBLE);
|
||||
fGLView->Hide();
|
||||
AddChild(fGLView);
|
||||
|
|
Loading…
Reference in New Issue