PureBasic 4.61 beta 4 !

Developed or developing a new product in PureBasic? Tell the world about it.
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: PureBasic 4.61 beta 4 !

Post by Foz »

Gah! Nevermind, it's me not reading code correctly...
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: PureBasic 4.61 beta 4 !

Post by DoubleDutch »

Thanks. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PureBasic 4.61 beta 4 !

Post by dige »

Is only a subjective impression. But since Beta 3/4 there are more often window redraws.
It looks a little bit like flickering ...
I'll further investigate and checking if SmartWindowRefresh() will help...
"Daddy, I'll run faster, then it is not so far..."
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 4.61 beta 4 !

Post by Fred »

You mean in the IDE ?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: PureBasic 4.61 beta 4 !

Post by DoubleDutch »

All works fine here - can't see any extra flickering at all.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PureBasic 4.61 beta 4 !

Post by dige »

Fred wrote:You mean in the IDE ?
No. I do a lot with images using
the ImageGadget(). It seems the
Images (24Bit) are more redrawed like
the 32 Bit Images since the Alpha
Channel support.

I'll continue to do some tests...
"Daddy, I'll run faster, then it is not so far..."
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PureBasic 4.61 beta 4 !

Post by dige »

I come closer to the redraw issue...
It seems the ImageGadget() will now more redrawed,
if its over an other Gadget like ScrollAreaGadget()...

Unfortunately, I do not have a reproducible sample :-(
But I'll keep trying...
"Daddy, I'll run faster, then it is not so far..."
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PureBasic 4.61 beta 4 !

Post by dige »

PB 4.61B4 Win7 x86

What happens here: Once the Image Window will be visible,
there is a short flicker effect: first a gray screen and later
the gradient image.

If you switch to another window (e.g. the one in the background)
the image is going to redrawing.

This behaviour is since PB4.61 ... anyone can confirm it?

Code: Select all

  CreateImage(0, 800, 600)
  If StartDrawing(ImageOutput(0))
      
      DrawingMode(#PB_2DDrawing_Gradient)      
      BackColor($00FFFF)
      FrontColor($FF0000)
      BoxedGradient(0, 0, 800, 600)
      Box(0, 0, 800, 600, $FFFFFF)
      
    StopDrawing()
  EndIf
  
  If OpenWindow(1, 0, 0, ImageWidth(0) + 50, ImageHeight(0) + 50, "Image Viewer", #WS_OVERLAPPEDWINDOW)
  
    If OpenWindow(0, 0, 0, ImageWidth(0), ImageHeight(0), "Image", #WS_OVERLAPPEDWINDOW|#PB_Window_Invisible, WindowID(1))
      ScrollAreaGadget(1, 0, 0, ImageWidth(0), ImageHeight(0), ImageWidth(0), ImageHeight(0), 1, #PB_ScrollArea_BorderLess )
      ImageGadget(2, 0, 0, ImageWidth(0), ImageHeight(0), ImageID(0) )
      CloseGadgetList()
    EndIf
  EndIf

  While WindowEvent() : Wend
  HideWindow(0, #False)
  
  Repeat
    
  Until WaitWindowEvent() = #PB_Event_CloseWindow
"Daddy, I'll run faster, then it is not so far..."
User avatar
[blendman]
Enthusiast
Enthusiast
Posts: 297
Joined: Thu Apr 07, 2011 1:14 pm
Location: 3 arks
Contact:

Re: PureBasic 4.61 beta 4 !

Post by [blendman] »

I confirma, i have the same Flickering here, on win xp x86.
You should post on bugs/windows, I think (but I don't know if it's really a bug).
Post Reply