From d13db4bab289753e4a5de2ed419ce17159102fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 24 Jun 2013 21:16:33 +0200 Subject: [PATCH] magnifying_glass uses the background color from configuration --- YACReader/magnifying_glass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/YACReader/magnifying_glass.cpp b/YACReader/magnifying_glass.cpp index 708672bc..bc8ce0f8 100644 --- a/YACReader/magnifying_glass.cpp +++ b/YACReader/magnifying_glass.cpp @@ -1,5 +1,6 @@ #include "magnifying_glass.h" #include "viewer.h" +#include "configuration.h" @@ -80,7 +81,7 @@ void MagnifyingGlass::updateImage(int x, int y) if(outImage) { QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32); - img.fill(0); + img.fill(Configuration::getConfiguration().getBackgroundColor()); if(zw>0&&zh>0) { QPainter painter(&img); @@ -129,7 +130,7 @@ void MagnifyingGlass::updateImage(int x, int y) if(outImage) { QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32); - img.fill(0); + img.fill(Configuration::getConfiguration().getBackgroundColor()); if(zw>0&&zh>0) { QPainter painter(&img);