The following 2 lines should be on the same y position place, but they are not
What I'am doing wrong.
It's a complete working test code.
Code: Select all
; test LineXY
#stringheight=20
FretSpanStart=2
If OpenWindow(0, 100, 100, 195, 260, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget, "PureBasic Window")
StartDrawing(WindowOutput())
tmp=FretSpanStart-1
LineXY(40,26+(#stringheight*FretSpanStart-1),140,26+(#stringheight*FretSpanStart-1),RGB(255,0,0))
LineXY(180,26+(#stringheight*tmp),140,26+(#stringheight*tmp),RGB(255,255,0))
StopDrawing()
Repeat
EventID.l = WaitWindowEvent()
If EventID = #PB_Event_CloseWindow ; If the user has pressed on the close button
Quit = 1
EndIf
Until Quit = 1
EndIf
End ; All the opened windows are closed automatically by PureBasic
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
