2
0
mirror of synced 2025-02-23 23:08:14 +00:00

app: change default window size to 600x800, on desktop.

The 3:4 aspect ratio is more phone-like than the 1:1 400x400.

Change-Id: Ifbc800b853159ea9eb4f255cb0acad2b34996ce6
Reviewed-on: https://go-review.googlesource.com/24143
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Nigel Tao 2016-06-16 13:05:37 +10:00
parent 2bbe618778
commit 3465f91246
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ runApp(void) {
[menu addItem:quitMenuItem];
[menuItem setSubmenu:menu];
NSRect rect = NSMakeRect(0, 0, 400, 400);
NSRect rect = NSMakeRect(0, 0, 600, 800);
NSWindow* window = [[[NSWindow alloc] initWithContentRect:rect
styleMask:NSTitledWindowMask

View File

@ -110,7 +110,7 @@ createWindow(void) {
exit(1);
}
eglBindAPI(EGL_OPENGL_ES_API);
win = new_window(x_dpy, e_dpy, 400, 400, &e_ctx, &e_surf);
win = new_window(x_dpy, e_dpy, 600, 800, &e_ctx, &e_surf);
wm_delete_window = XInternAtom(x_dpy, "WM_DELETE_WINDOW", True);
if (wm_delete_window != None) {