Change default window size on Windows.
The OS tends to pick a very large size if you let it. Instead, choose a smaller (fixed) window (matching what we currently use on Linux). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1919133004 Review URL: https://codereview.chromium.org/1919133004
This commit is contained in:
parent
adf4fa6fde
commit
3ec513632c
@ -31,6 +31,9 @@
|
||||
#include "gl/command_buffer/SkCommandBufferGLContext.h"
|
||||
#endif // SK_COMMAND_BUFFER
|
||||
|
||||
const int kDefaultWindowWidth = 500;
|
||||
const int kDefaultWindowHeight = 500;
|
||||
|
||||
#define GL_CALL(IFACE, X) \
|
||||
SkASSERT(IFACE); \
|
||||
do { \
|
||||
@ -50,7 +53,8 @@ SkOSWindow::SkOSWindow(const void* winInit) {
|
||||
fWinInit = *(const WindowInit*)winInit;
|
||||
|
||||
fHWND = CreateWindow(fWinInit.fClass, NULL, WS_OVERLAPPEDWINDOW,
|
||||
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, fWinInit.fInstance, NULL);
|
||||
CW_USEDEFAULT, 0, kDefaultWindowWidth, kDefaultWindowHeight, NULL, NULL,
|
||||
fWinInit.fInstance, NULL);
|
||||
gHwndToOSWindowMap.set(fHWND, this);
|
||||
#if SK_SUPPORT_GPU
|
||||
#if SK_ANGLE
|
||||
|
Loading…
Reference in New Issue
Block a user