View | Details | Raw Unified | Return to bug 208843
Collapse All | Expand All

(-)graphics/cuneiform/files/patch-cuneiform__src_Kern_rimage_sources_main_cricontrol.cpp (+13 lines)
Line 0 Link Here
1
--- cuneiform_src/Kern/rimage/sources/main/cricontrol.cpp.orig	2011-04-19 12:49:57 UTC
2
+++ cuneiform_src/Kern/rimage/sources/main/cricontrol.cpp
3
@@ -594,8 +594,8 @@ Bool32 CRIControl::CreateDestinatonDIB(u
4
 		return FALSE;
5
 	}
6
 
7
-	wNewHeight = (mbMarginsFlag ? abs(mrMargins.rmBottomMarg - mrMargins.rmTopMarg) : mpSourceDIB->GetLinesNumber());
8
-	wNewWidth = (mbMarginsFlag ? abs(mrMargins.rmLeftMarg - mrMargins.rmRightMarg) : mpSourceDIB->GetLineWidth());
9
+	wNewHeight = (mbMarginsFlag ? abs((int32_t)(mrMargins.rmBottomMarg - mrMargins.rmTopMarg)) : mpSourceDIB->GetLinesNumber());
10
+	wNewWidth = (mbMarginsFlag ? abs((int32_t)(mrMargins.rmLeftMarg - mrMargins.rmRightMarg)) : mpSourceDIB->GetLineWidth());
11
 	mpSourceDIB->GetResolutionDPM( &wXResolution, &wYResolution);
12
 
13
 	if ( !mpDestinationDIB->CreateDIBBegin( wNewWidth, wNewHeight, BitCount) )

Return to bug 208843