From 0a56adea03683be6066622bbbbae1f0b8c73db12 Mon Sep 17 00:00:00 2001 From: mouse Date: Wed, 31 Mar 2004 14:54:16 +0000 Subject: dirty bugfix (segfault with scaleFactor > 1), see inside for more info --- (limited to 'noncore/comm') diff --git a/noncore/comm/keypebble/krfbbuffer.cpp b/noncore/comm/keypebble/krfbbuffer.cpp index 92918d4..4cec0c2 100644 --- a/noncore/comm/keypebble/krfbbuffer.cpp +++ b/noncore/comm/keypebble/krfbbuffer.cpp @@ -189,7 +189,9 @@ void KRFBBuffer::drawRawRectChunk( void *data, } if (scaleFactor > 1) { - p.drawImage( x/scaleFactor, y/scaleFactor, img.smoothScale(w/scaleFactor,h/scaleFactor) ); + /* FIXME: proper zero width/height handling */ + if (w/scaleFactor != 0) + p.drawImage( x/scaleFactor, y/scaleFactor, img.smoothScale(w/scaleFactor,h/scaleFactor) ); emit updated( x/scaleFactor, y/scaleFactor, w/scaleFactor, h/scaleFactor ); } else { -- cgit v0.9.0.2