Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

2.21B1 : OutputWidth/Height() is 1 pixel larger than with PB

by Niffo Fri Nov 09, 2018 3:32 pm

At lease in CanvasGadget, OutputWidth/Height() is 1 pixel larger than with PB :
(try the code in PB)

Code: Select all
OpenWindow(0, 100, 100, 300, 200, "Output Width/Height")
CanvasGadget(0, 10, 10, 280, 180)
StartDrawing(CanvasOutput(0))
FrontColor(RGB(255,0,0))
DrawingMode(#PB_2DDrawing_Outlined)
Box(0, 0, OutputWidth(), OutputHeight())
StopDrawing()

CompilerIf #PB_Compiler_OS <> #PB_OS_Web
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
CompilerEndIf
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests