Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Bug in Picture Class 
	
		
		
			| Bug in Picture Class [message #12407] | 
			Sat, 27 October 2007 21:56   | 
		 
		
			
				
				
				
					
						  
						zsolt
						 Messages: 702 Registered: December 2005  Location: Budapest, Hungary
						
					 | 
					Contributor   | 
					 | 
		 
		 
	 | 
 
	
		The problem is that showing big drawings, the scaling is buggy. 
I attached a testcase: load a big image file and try resizing it. 
 
Fix: CtrlLib/Static.cpp in void Picture::Paint(Draw& w) change a line: 
//if(sr.cx * sz.cx < sz.cy * sr.cy) {
if(sr.cy * sz.cx < sz.cy * sr.cx) {
 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 02:18:13 CET 2025 
 Total time taken to generate the page: 0.05933 seconds 
 |