Page 2 of 2

Re: PureBasic 4.61 beta 4 !

Posted: Mon May 14, 2012 11:04 pm
by Foz
Gah! Nevermind, it's me not reading code correctly...

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 15, 2012 1:44 pm
by DoubleDutch
Thanks. :)

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 15, 2012 1:47 pm
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...

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 15, 2012 4:24 pm
by Fred
You mean in the IDE ?

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 15, 2012 4:47 pm
by DoubleDutch
All works fine here - can't see any extra flickering at all.

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 15, 2012 4:56 pm
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...

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 22, 2012 7:53 am
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...

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 22, 2012 8:36 am
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

Re: PureBasic 4.61 beta 4 !

Posted: Tue May 22, 2012 12:22 pm
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).