mirror of
				https://github.com/YACReader/yacreader
				synced 2025-11-04 01:05:06 -05:00 
			
		
		
		
	magnifying_glass uses the background color from configuration
This commit is contained in:
		@ -1,5 +1,6 @@
 | 
				
			|||||||
#include "magnifying_glass.h"
 | 
					#include "magnifying_glass.h"
 | 
				
			||||||
#include "viewer.h"
 | 
					#include "viewer.h"
 | 
				
			||||||
 | 
					#include "configuration.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -80,7 +81,7 @@ void MagnifyingGlass::updateImage(int x, int y)
 | 
				
			|||||||
		if(outImage)
 | 
							if(outImage)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32);
 | 
								QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32);
 | 
				
			||||||
			img.fill(0);
 | 
								img.fill(Configuration::getConfiguration().getBackgroundColor());
 | 
				
			||||||
			if(zw>0&&zh>0)
 | 
								if(zw>0&&zh>0)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				QPainter painter(&img);
 | 
									QPainter painter(&img);
 | 
				
			||||||
@ -129,7 +130,7 @@ void MagnifyingGlass::updateImage(int x, int y)
 | 
				
			|||||||
		if(outImage)
 | 
							if(outImage)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32);
 | 
								QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32);
 | 
				
			||||||
			img.fill(0);
 | 
								img.fill(Configuration::getConfiguration().getBackgroundColor());
 | 
				
			||||||
			if(zw>0&&zh>0)
 | 
								if(zw>0&&zh>0)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				QPainter painter(&img);
 | 
									QPainter painter(&img);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user