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

[Done] 2.21 OutputWidth/Height() is 1 pixel larger than PB

by Niffo Fri Nov 09, 2018 3:32 pm

At least 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
Last edited by Niffo on Mon Jan 14, 2019 8:19 pm, edited 1 time in total.
Fred
Site Admin
 
Posts: 1130
Joined: Mon Feb 24, 2014 10:51 am

Re: 2.21B1 : OutputWidth/Height() is 1 pixel larger than wit

by Fred Mon Jan 14, 2019 6:56 pm

Fixed.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests