Commit 0d7ba80e authored by IOhannes m zmölnig's avatar IOhannes m zmölnig

renamed gemmacwindow's GemCocoaView to GemMacOSView

to avoid nameclashes with [gemcocoawindow].
thanks fede on the mailinglist for pointing that out.
parent 9634f919
......@@ -99,14 +99,14 @@ static NSDate *distantFuture, *distantPast;
@end
#endif
@interface GemCocoaView : NSOpenGLView
@interface GemMacOSView : NSOpenGLView
{
@public gemmacoswindow*parent;
}
@end
typedef GLint oglc_setvalue_t;
@implementation GemCocoaView
@implementation GemMacOSView
- (void) prepareOpenGL
{
#if 0
......@@ -148,7 +148,7 @@ typedef GLint oglc_setvalue_t;
@end
struct gemmacoswindow :: PIMPL {
GemCocoaView*view;
GemMacOSView*view;
NSWindow*window;
// WindowResponder*delegate;
float titleBarHeight, menuBarHeight;
......@@ -440,7 +440,7 @@ bool gemmacoswindow :: create(void)
}
NSOpenGLPixelFormat *nsglFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attr] autorelease];
m_pimpl->view = [[GemCocoaView alloc] initWithFrame:[contentView bounds] pixelFormat:nsglFormat];
m_pimpl->view = [[GemMacOSView alloc] initWithFrame:[contentView bounds] pixelFormat:nsglFormat];
m_pimpl->view->parent=this;
m_pimpl->window=window;
[contentView addSubview:m_pimpl->view];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment