freebasic.net Forum Index
FreeBASIC's Official Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in

fbgfx bugs....

 
Post new topic   Reply to topic    freebasic.net Forum Index -> General
View previous topic :: View next topic  
Author Message
Mysoft
Sr. Member
PostPosted: Feb 26, 2010 19:57    Post subject: fbgfx bugs.... Reply with quote

ok the version is:
FreeBASIC Compiler - Version 0.21.0 (01-23-2010) for win32 (target:win32)

while doing some specific job... i found again some bugs
and this time i decided to report they...

1) WindowTitle is causing it to the update the screen even when the screen is locked
2) ScreenControl(fb.SET_WINDOW_POS) isnt updating the clipping area, so the area is only updated later (maybe when mouse get out of the screen and then back again...)

Code:
#include "fbgfx.bi"

screenres 320,240,16
Screencontrol(fb.SET_WINDOW_POS,16,16)

' ****************************************************************
' ***************************** BUG 1 ****************************
' ****************************************************************
screenlock
For CNT As Integer = 1 To 512
  Circle(Rnd*320,Rnd*240),100,rgb(Rnd*255,Rnd*255,Rnd*255),,,,f
  WindowTitle("Count=" & CNT) ' <- this is causing it to update
  Sleep 1,1
Next CNT
screenunlock

' ****************************************************************
' **************************** BUG 2 *****************************
' ****************************************************************
setmouse ,,,1
Screencontrol(fb.SET_WINDOW_POS,400,300) ' <- not updating clip area

Sleep
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
BasicScience

PostPosted: Feb 26, 2010 21:03    Post subject: Reply with quote

Isn't "bug 2" only because the screencontrol position (400, 300) is outside screenres?
 
Back to top
View user's profile
Mysoft
Sr. Member
PostPosted: Feb 27, 2010 0:31    Post subject: Reply with quote

not exactly if it was in the range... the effect would be the same
it will only reactivate the clipping when you get out of the windows
and then go above it again...

so such things isnt acceptable if you will make the window move by click
(frameless window for example...)

ofcourse there are workaround... but still a bug ;}
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    freebasic.net Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum



sf.net phatcode