mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-26 04:22:43 +02:00
applied patch from Valdas Janka for bug #8498 to fix pixmap scaling
git-svn-id: trunk@10874 -
This commit is contained in:
parent
3af8922151
commit
578459f760
@ -1229,7 +1229,7 @@ begin
|
|||||||
DebugLn('ScalePixmap Creating PixBuf from pixmap SrcWhole='+dbgs(SrcWholeWidth),','+dbgs(SrcWholeHeight));
|
DebugLn('ScalePixmap Creating PixBuf from pixmap SrcWhole='+dbgs(SrcWholeWidth),','+dbgs(SrcWholeHeight));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
ScaleSRC := gdk_pixbuf_get_from_drawable(nil,SrcPixmap,
|
ScaleSRC := gdk_pixbuf_get_from_drawable(nil,SrcPixmap,
|
||||||
SrcColorMap,0,0,SrcX,SrcY,SrcWidth,SrcHeight);
|
SrcColorMap,SrcX,SrcY,0,0,SrcWidth,SrcHeight);
|
||||||
If ScaleSRC = nil then begin
|
If ScaleSRC = nil then begin
|
||||||
DebugLn('WARNING: ScalePixmap ScaleSRC=nil');
|
DebugLn('WARNING: ScalePixmap ScaleSRC=nil');
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user