LB Booster
« Blitting blank screen. »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:35am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Blitting blank screen.  (Read 814 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Blitting blank screen.
« Reply #3 on: Mar 6th, 2014, 08:21am »

on Mar 5th, 2014, 9:53pm, Richard Russell wrote:
The most straightforward workaround is to forcibly bring #1.gb in front of #1.sk

Here's a simpler workaround: just reverse the order of the STYLEBITS commands:

Code:
    stylebits #1.gb, 0, _WS_BORDER, 0, 0
    stylebits #1.sk, 0, _WS_BORDER, 0, 0 

The order of the STYLEBITS commands shouldn't be significant, so this seems to be a bug in LBB. I will investigate.

Richard.
« Last Edit: Mar 6th, 2014, 11:04am by Richard Russell » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Blitting blank screen.
« Reply #4 on: Mar 6th, 2014, 4:13pm »

on Mar 6th, 2014, 08:21am, Richard Russell wrote:
this seems to be a bug in LBB. I will investigate.

I can confirm it was a bug, although an extremely obscure one. I have uploaded a fixed version of LBB (2.51) to the usual place:

http://lbbooster.com/LBB.exe
http://lbbooster.com/LBBRUN.exe

You were very unlucky to encounter this bug. It only had an effect if all the following conditions were met:
  • You create two controls whose Z-order matters (which is usually the case only if they overlap).

  • Both controls have STYLEBITS statements.

  • The STYLEBITS statements appear before the statements which create the controls.

  • The order in which the STYLEBITS statements appear in the program is different from the order in which the controls themselves are created.
Your betty.bas meets those conditions, but it's not very surprising that the bug - which has been present in all versions of LBB to date - has never been spotted previously!

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls