It is currently Tue Jan 26, 2021 6:27 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [Done] 5.73b2 SetWindowColor Bug break the ImageGadget
PostPosted: Tue Oct 20, 2020 8:23 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Apr 05, 2020 11:28 am
Posts: 425
Location: Pandora
5.73b2 New Bug - 5.72 and older is ok
Windows only Bug
SetWindowColor causes this error.
Changing or resizing or content changing images with transparency are displayed on top of each other.
The buffer is not refreshed when images with transparency are displayed.
Animated GIFs with transparency, for example, cannot be displayed.
Also resizing is not possible then.
Code:
EnableExplicit

Define window_ID=OpenWindow(#PB_Any, 0, 0, 600, 600, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
SetWindowColor(window_ID, $D0D0D0) ; TODO Remove this line, then it works

Define gadget_1_ID=ImageGadget(#PB_Any, 100, 100, 400, 400, 0)

Define image_0_ID=CreateImage(#PB_Any, 400, 400, 32, #PB_Image_Transparent)
StartDrawing(ImageOutput(image_0_ID))
DrawingMode(#PB_2DDrawing_AllChannels)
Box(0, 0, 300, 300, $FF0000FF)
DrawText(10, 10, "This text and the red box must not appear")
StopDrawing()

Define image_1_ID=CreateImage(#PB_Any, 400, 400, 32, #PB_Image_Transparent)
StartDrawing(ImageOutput(image_1_ID))
DrawingMode(#PB_2DDrawing_AllChannels)
Box(100, 100, 300, 300, $FFFF0000)
DrawText(110, 110, "Only the blue box you must see")
StopDrawing()

SetGadgetState(gadget_1_ID, ImageID(image_0_ID))
SetGadgetState(gadget_1_ID, ImageID(image_1_ID))

Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow

Resizing on a colored window
Testfile : "GFX_Wizzard_BF\Dynamic_Gadgets_Feature_Demo_Module_with_GIF_and_MessageRequester_BF.pb"
Image

_________________
地球上の平和


Last edited by Saki on Fri Oct 30, 2020 4:36 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: 5.73b2 SetWindowColor Bug break the ImageGadget
PostPosted: Fri Oct 30, 2020 4:25 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14181
Location: France
Fixed.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye