Skip to content

Commit 2f49342

Browse files
committed
Fixed windows size
Fixed windows size
1 parent 7da49d3 commit 2f49342

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Tutorial2_1_CrossPlatformEngine_macOS/OGL3D/source/OGL3D/Window/CCocoaWindow.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ - (void) dealloc {
6969
NSUInteger windowStyle = NSTitledWindowMask | NSClosableWindowMask ;
7070

7171
NSRect screenRect = [[NSScreen mainScreen] frame];
72-
NSRect viewRect = NSMakeRect(0, 0, 800, 600);
72+
NSRect viewRect = NSMakeRect(0, 0, 1024, 768);
7373
NSRect windowRect = NSMakeRect(NSMidX(screenRect) - NSMidX(viewRect),
7474
NSMidY(screenRect) - NSMidY(viewRect),
7575
viewRect.size.width,

Tutorial2_2_CrossPlatformEngine_Linux/OGL3D/source/OGL3D/Window/CCocoaWindow.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ - (void) dealloc {
6969
NSUInteger windowStyle = NSTitledWindowMask | NSClosableWindowMask ;
7070

7171
NSRect screenRect = [[NSScreen mainScreen] frame];
72-
NSRect viewRect = NSMakeRect(0, 0, 800, 600);
72+
NSRect viewRect = NSMakeRect(0, 0, 1024, 768);
7373
NSRect windowRect = NSMakeRect(NSMidX(screenRect) - NSMidX(viewRect),
7474
NSMidY(screenRect) - NSMidY(viewRect),
7575
viewRect.size.width,

Tutorial2_2_CrossPlatformEngine_Linux/OGL3D/source/OGL3D/Window/CX11Window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ OWindow::OWindow()
3737
attributes.colormap = GlobalColorMap;
3838

3939
Window window =
40-
XCreateWindow(GlobalDisplay, GlobalWindowRoot, 0, 0, 800, 600, 0,
40+
XCreateWindow(GlobalDisplay, GlobalWindowRoot, 0, 0, 1024, 768, 0,
4141
DefaultDepth(GlobalDisplay, GlobalScreenId), InputOutput, GlobalVisual,
4242
CWColormap | CWEventMask, &attributes);
4343

0 commit comments

Comments
 (0)