X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37c997b489f82f7a3a158b954d010ed93eb0b002..62d3ee70e51f335188a788372a3e66acbcd0bb63:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index a4d1810a6d..85a9fd34fe 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1330,7 +1330,7 @@ void wxWindow::DoSetSizeIntr(int x, int y, int width, int height, int sizeFlags, bool fromCtor) { // A bit of optimization to help sort out the flickers. - int oldX = 0, oldY = 0, oldW = 0, oldH = 0; + int oldX = -1, oldY = -1, oldW = -1, oldH = -1; if( !fromCtor ) { GetSize(& oldW, & oldH); @@ -2442,7 +2442,7 @@ void wxWindow::CanvasSetSizeIntr(int x, int y, int w, int h, int sizeFlags, bool fromCtor) { // A bit of optimization to help sort out the flickers. - int oldX = 0, oldY = 0, oldW = 0, oldH = 0; + int oldX = -1, oldY = -1, oldW = -1, oldH = -1; // see the top of the file, near DoSetSizeIntr if( !fromCtor ) {