Bug #766
Bar command draws bars 1 pixel too small in both directions.
Start date:
05/29/2021
Due date:
% Done:
0%
Estimated time:
1:00 h
Affected version:
Description
In the following example, there should be no black lines to the right of or below the bars.
#displayWidth: 800 #displayHeight: 400 Screen Open 0,800,400,32,Lowres Flash Off : Curs Off Palette 0,$333333,$777777,$BBBBBB,$FFFFFF,$330000,$770000,$BB0000,$FF0000,$003300,$007700,$00BB00,$00FF00,$000033,$000077,$0000BB,$0000FF,$330033,$770077,$BB00BB,$FF00FF,$333300,$777700,$BBBB00,$FFFF00,$003333,$007777,$00BBBB,$00FFFF Cls 0 xPos=0 iCol=1 Repeat ink iCol Bar xPos,0 To xPos+15,Screen Height-2 Add xPos,16 Inc iCol : If iCol > 28 Then iCol=1 Until xPos >= Screen Width
Files
Updated by Brian Flanagan almost 3 years ago
There was a typo in the example, but it doesn't affect the results.
The bar command should read:
Bar xPos,0 To xPos+15,Screen Height-1
There are still black lines below and to the right of each bar, which should not be there.
Updated by Francois Lionet over 2 years ago
- Assignee set to David Baldwin
Should be fixed in beta 10! Thanks Dave. :)
Updated by Brian Flanagan over 2 years ago
- Status changed from New to Resolved
- Target version changed from none to 1.0.0 (B10) u16
Re-tested in 1.0.0 (B10) u16 (9/7 rev)
Working!