A bit smarter image handling.
This commit is contained in:
parent
cd1b48c76a
commit
3c35f4cc8a
1 changed files with 2 additions and 3 deletions
|
|
@ -325,8 +325,8 @@ sub toolbox
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
sub colorpicker
|
sub colorpicker
|
||||||
dim img as long
|
static img as long
|
||||||
img=_newimage(16,16,32)
|
if img=0 then img=_newimage(16,16,32)
|
||||||
for i=0 to ubound(pal)
|
for i=0 to ubound(pal)
|
||||||
_dest img
|
_dest img
|
||||||
cls,pal(i)
|
cls,pal(i)
|
||||||
|
|
@ -341,7 +341,6 @@ sub colorpicker
|
||||||
addcommand"bcolor ("+hex$(pal(i))+")"
|
addcommand"bcolor ("+hex$(pal(i))+")"
|
||||||
end select
|
end select
|
||||||
next i
|
next i
|
||||||
_freeimage img
|
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
sub addcommand(cmd as string)
|
sub addcommand(cmd as string)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue