aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-03-01 13:39:14 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-01 19:15:43 +0000
commit7b98dc277570a6c74a7d0e9fc294aa0d1609f989 (patch)
treec22112e9f6b935c947ab6a0a648c31bbb830c3ec /tools/viewer
parentaf9847ee11ae92dbb369cdca3e6d6ae69a62b973 (diff)
Set window dimensions in raster on Unix
These values were left uninitialized, leading to problems with the GUI in raster configs. BUG=skia: Change-Id: Ia8c16112e53b74daf66941d2923327c9732cf432 Reviewed-on: https://skia-review.googlesource.com/9114 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tools/viewer')
-rw-r--r--tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp b/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp
index fbe6a67c0b..73846a11ab 100644
--- a/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp
+++ b/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp
@@ -38,6 +38,8 @@ RasterWindowContext_xlib::RasterWindowContext_xlib(Display* display, XWindow win
fDisplayParams = params;
fGC = XCreateGC(fDisplay, fWindow, 0, nullptr);
this->resize(width, height);
+ fWidth = width;
+ fHeight = height;
}
void RasterWindowContext_xlib::setDisplayParams(const DisplayParams& params) {