mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
magnifying_glass uses the background color from configuration
This commit is contained in:
parent
c6095ad290
commit
d13db4bab2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user