Author Topic: [FIXED] CONST bug not fixed still  (Read 1226 times)

0 Members and 1 Guest are viewing this topic.

Offline qbguy

  • Newbie
  • Posts: 12
[FIXED] CONST bug not fixed still
« on: October 15, 2018, 10:19:54 PM »
Code: QB64: [Select]
  1. CONST ScreenWidth = 640
  2. CONST ScreenHeight = 480
  3. CONST SquareWidth = ScreenHeight / 8
  4. CONST tlx = (ScreenWidth - ScreenHeight) / 2
  5. CONST tly = 0
  6. CONST brx = ScreenWidth - (ScreenWidth - ScreenHeight) / 2
  7. CONST bry = ScreenHeight
  8. CONST PieceRadius = SquareWidth / 2 - 5
  9.  

In QBASIC this defines some constants in terms of the constants ScreenWidth and ScreenHeight.  In QB64 this fails to compile.  Of course the  brx line simplifies to
(ScreenWidth + ScreenHeight)/2.
« Last Edit: November 01, 2018, 10:53:04 PM by odin »

Online SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3185
    • Steve’s QB64 Archive Forum
Re: CONST bug not fixed still
« Reply #1 on: October 30, 2018, 01:06:34 PM »
Fixed here -- https://www.qb64.org/forum/index.php?topic=742.0 -- unless the patch breaks something else I haven't stumbled across yet.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!