From 7b98dc277570a6c74a7d0e9fc294aa0d1609f989 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Wed, 1 Mar 2017 13:39:14 -0500 Subject: 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 Commit-Queue: Brian Osman --- tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/viewer') 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) { -- cgit v1.2.3