This forum is for eXpress++ general support.
			
		
		
			
				
																			
								daan_vossebeld 							 
									
		Posts:  11 Joined:  Fri Jan 29, 2010 1:37 am 
		
						
						
													
							
						#1 
						Post 
					 
								by daan_vossebeld  Wed Dec 01, 2010 5:58 am 
			
			
			
			
			Roger,
I found a small error in function DC_BitMapDraw of file _dcfunct.prg (eXpress 19254). In some situations the AUTOSCALE of DCBITMAP did not work correctly. If you agree, please replace the following lines:
Old: lines 676-686
Code: Select all 
IF lAutoScale
  IF nAspect > 1
    IF nAspect > aTarget[3] / aTarget[4]
      aTarget[4] := aTarget[3] / nAspect
    ELSE
      aTarget[3] := aTarget[4] * nAspect
    ENDIF
  ELSE
    aTarget[3] := aTarget[4] * nAspect
  ENDIF
ENDIF
New:
Code: Select all 
IF lAutoScale
  IF nAspect > aTarget[3] / aTarget[4]
    aTarget[4] := aTarget[3] / nAspect
  ELSE
    aTarget[3] := aTarget[4] * nAspect
  ENDIF
ENDIF
See the effect in the attached example.
Daan
					
						Attachments
					 
											
			
		
				
			MyDinner.jpg (115.33 KiB) Viewed 13201 times 
		 
		
		
			 
									 
			
									
									
						 
		 
				
		
		 
	 
	
		
		
			
				
								rdonnay 							 
						Site Admin 			
		Posts:  4868 Joined:  Wed Jan 27, 2010 6:58 pmLocation:  Boise, Idaho USA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#2 
						Post 
					 
								by rdonnay  Wed Dec 01, 2010 9:15 am 
			
			
			
			
			Daan -
			
			
									
									 The eXpress train is coming - and it has more cars. 
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								daan_vossebeld 							 
									
		Posts:  11 Joined:  Fri Jan 29, 2010 1:37 am 
		
						
						
													
							
						#3 
						Post 
					 
								by daan_vossebeld  Sat Feb 05, 2011 1:59 pm 
			
			
			
			
			Roger,
			
			
									
									
						 
		 
				
		
		 
	 
	
		
		
			
				
								rdonnay 							 
						Site Admin 			
		Posts:  4868 Joined:  Wed Jan 27, 2010 6:58 pmLocation:  Boise, Idaho USA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#4 
						Post 
					 
								by rdonnay  Sat Feb 05, 2011 4:23 pm 
			
			
			
			
			This is very strange.  It appears that I made the change in my build 254 directory instead of the 255 build directory.
			
			
									
									 The eXpress train is coming - and it has more cars.