diff options
Diffstat (limited to 'graphics/yvonne/fixgarbage.diff')
-rw-r--r-- | graphics/yvonne/fixgarbage.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/yvonne/fixgarbage.diff b/graphics/yvonne/fixgarbage.diff new file mode 100644 index 0000000000..ce257fad47 --- /dev/null +++ b/graphics/yvonne/fixgarbage.diff @@ -0,0 +1,18 @@ +diff -Naur yvonne-1.0.orig/widget.cpp yvonne-1.0/widget.cpp +--- yvonne-1.0.orig/widget.cpp 2006-12-28 16:37:54.000000000 -0500 ++++ yvonne-1.0/widget.cpp 2022-12-27 22:50:09.965687828 -0500 +@@ -182,6 +182,14 @@ + nWidth=m_pImage->getWidth(); + nHeight=m_pImage->getHeight(); + pDisplayImage=new QImage(IMAGE_WIDTH_MAX, IMAGE_HEIGHT_MAX, QImage::Format_RGB32); ++ QRgb black = qRgb(0, 0, 0); ++ for(unsigned int y=0;y<IMAGE_HEIGHT_MAX;y++) ++ { ++ for(unsigned int x=0;x<IMAGE_WIDTH_MAX;x++) ++ { ++ pDisplayImage->setPixel(x, y, black); ++ } ++ } + nSeekX=(IMAGE_WIDTH_MAX-nWidth)>>1; + nSeekY=(IMAGE_HEIGHT_MAX-nHeight)>>1; + for(int y=0;y<nHeight;y++) |