Skip to content

Commit 23667b1

Browse files
author
Jonathan Dann
committed
Sets the frame of openGLLayer in -setFrameSize:
1 parent b097370 commit 23667b1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Framework/Views/OpenGL/KTOpenGLView.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ - (void) reshape
196196
{
197197
[super reshape];
198198
[self setup2DCamera];
199-
if(mOpenGLLayer)
200-
[mOpenGLLayer setFrame:[self bounds]];
199+
// if(mOpenGLLayer)
200+
// [mOpenGLLayer setFrame:[self bounds]];
201201
}
202202

203203
//===========================================================
@@ -328,7 +328,11 @@ - (void)setOpenGLLayer:(KTOpenGLLayer*)theLayer
328328
[self setShouldAcceptFirstResponder:YES];
329329
}
330330

331-
331+
- (void)setFrameSize:(NSSize)theSize;
332+
{
333+
[super setFrameSize:theSize];
334+
[mOpenGLLayer setFrame:[self bounds]];
335+
}
332336

333337

334338
#pragma mark -

0 commit comments

Comments
 (0)