mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-03 07:41:21 +00:00
Where the previous bug would only return the console's image size when an image was passed, the new bug made it only ever return 80 for `_Width` and 25 for `_Height` when it should be returning the console's image size if there is no value passed and it is the `_Source`, which it is if we are in a `$Console:Only`. Here is a code block that demonstrates the bug being fixed: ```Option _Explicit $Console Screen _NewImage(640, 480, 32) _Dest _Console Width 120, 5 _Dest 0 Print "Hello world" Print _DesktopWidth, _DesktopHeight Dim As Long i: i = _NewImage(1280, 720, 32) Print _Width, _Height Print _Width(0), _Height(0) Print _Width(_Console), _Height(_Console)``` |
||
---|---|---|
.. | ||
c | ||
help | ||
source | ||
temp | ||
clean.bat |