Skip to content

Commit

Permalink
(PaintLib)Correction on Color
Browse files Browse the repository at this point in the history
(Zip) Correction on REF param
  • Loading branch information
fforay committed Mar 28, 2023
1 parent 3c7b45e commit 79599e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
15 changes: 6 additions & 9 deletions FabTools/FabPaintLib_Control/VOControl.prg
Original file line number Diff line number Diff line change
Expand Up @@ -226,26 +226,23 @@ BEGIN NAMESPACE FabPaintLib.Control

return

access BackgroundColor as Color
local oColor as Color
access BackgroundColor as VO.Color
local oColor as VO.Color
local RGB IS _WinRGBQUAD
//
oColor := NULL_OBJECT
if self:oImg:GetBackgroundColor( @RGB )
//
oColor := Color{ RGB:rgbRed, RGB:rgbGreen, RGB:rgbBlue }
oColor := VO.Color{ RGB:rgbRed, RGB:rgbGreen, RGB:rgbBlue }
endif
return oColor


Assign BackgroundColor( oColor as Color )
local RGB IS _WinRGBQUAD
Assign BackgroundColor( oColor as VO.Color )
//
RGB:rgbGreen := oColor:Green
RGB:rgbRed := oColor:Red
RGB:rgbBlue := oColor:Blue
var winColor := System.Drawing.Color.FromARGB( oColor:Red, oColor:Green, oColor:Blue )
//
self:oImg:SetBackgroundColor( oColor )
self:oImg:SetBackgroundColor( winColor )


METHOD Destroy() CLIPPER
Expand Down
4 changes: 2 additions & 2 deletions FabTools/FabZip/FabZipFile.prg
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ BEGIN NAMESPACE FabZip
ENDIF
NewName := ""
IF Empty( SELF:cTempDir )
FabGetTempFile( NewName, "zip" )
FabGetTempFile( Ref NewName, "zip" )
ELSE
FabGetTempFile( NewName, "zip", SELF:cTempDir )
FabGetTempFile( Ref NewName, "zip", SELF:cTempDir )
ENDIF
// The temporary Zip FileName
TmpZipName := NewName
Expand Down

0 comments on commit 79599e1

Please sign in to comment.