mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:39:06 +02:00
MG: small bugfixes
git-svn-id: trunk@946 -
This commit is contained in:
parent
1ede65c325
commit
7a9b581d4e
@ -272,6 +272,7 @@ begin
|
|||||||
If ClipRegion <> 0 then begin
|
If ClipRegion <> 0 then begin
|
||||||
Region:=PGDIObject(ClipRegion);
|
Region:=PGDIObject(ClipRegion);
|
||||||
DCOrigin:=GetDCOffset(PDeviceContext(DC));
|
DCOrigin:=GetDCOffset(PDeviceContext(DC));
|
||||||
|
//writeln('SelectGDIRegion DC=',HexStr(Cardinal(DC),8),' DCOrigin=',DCOrigin.X,',',DCOrigin.Y);
|
||||||
if (DCOrigin.X<>0) or (DCOrigin.X<>0) then
|
if (DCOrigin.X<>0) or (DCOrigin.X<>0) then
|
||||||
gdk_region_offset(Region^.GDIRegionObject,DCOrigin.X,DCOrigin.Y);
|
gdk_region_offset(Region^.GDIRegionObject,DCOrigin.X,DCOrigin.Y);
|
||||||
gdk_gc_set_clip_region(gc, PGDIObject(ClipRegion)^.GDIRegionObject);
|
gdk_gc_set_clip_region(gc, PGDIObject(ClipRegion)^.GDIRegionObject);
|
||||||
@ -296,7 +297,7 @@ begin
|
|||||||
gdk_gc_set_fill(GC, GDIBrushFill);
|
gdk_gc_set_fill(GC, GDIBrushFill);
|
||||||
gdk_gc_set_foreground(GC, @GDIBrushColor);
|
gdk_gc_set_foreground(GC, @GDIBrushColor);
|
||||||
gdk_gc_set_background(GC, @CurrentBackColor);
|
gdk_gc_set_background(GC, @CurrentBackColor);
|
||||||
SelectGDIRegion(DC);
|
//SelectGDIRegion(DC);
|
||||||
//TODO: Brush pixmap
|
//TODO: Brush pixmap
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -2850,6 +2851,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.96 2002/09/12 15:35:57 lazarus
|
||||||
|
MG: small bugfixes
|
||||||
|
|
||||||
Revision 1.95 2002/09/10 06:49:21 lazarus
|
Revision 1.95 2002/09/10 06:49:21 lazarus
|
||||||
MG: scrollingwincontrol from Andrew
|
MG: scrollingwincontrol from Andrew
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user