Matthew Kilgore
62ec4ebdbd
Fix compilation with DEP_DEVICEINPUT
...
The Makefile changes broke compiling with device input support. This got
missed because no test case for DEP_DEVICEINPUT got added.
Fixes: #100
2022-06-09 21:30:37 -04:00
Matthew Kilgore
437cfc3ab7
Remove old build system
...
Mostly old build scripts and helper files that are now covered by the
Makefile.
A notable deletion is the glew dll and lib files. These are unnecessary
because we compile `glew.c` directly rather than link against the dll or
lib copies we have.
2022-05-19 09:17:13 -04:00
Matthew Kilgore
e0ef818522
Change purge scripts to use make clean
2022-05-19 09:17:13 -04:00
SteveMcNeill
ecfa18a109
change numerics to more descriptive constants
2022-05-17 05:04:41 -04:00
SteveMcNeill
8574c1f921
Change to _screenwidth and _screenheight
...
Having windows call GetSystemMetrics without relying on glutGet, gets rid of the seg fault that can occur at program start up. screenicon was restored to it's previous state so that larger issues with it can be addressed at a future date.
2022-05-16 11:37:58 -04:00
SteveMcNeill
acbeca81b9
Fix to _desktopwidth, _desktopheight, _screenicon
...
Fixes the issue as brought up on the forums here: https://qb64phoenix.com/forum/showthread.php?tid=408
Also added a small set of logic so we don't end up inside an endless loop if the screen is hidden (via _SCREENHIDE), or if it doesn't exist for whatever reason.
2022-05-16 07:55:08 -04:00
Matthew Kilgore
7a5ca0c49c
Cleanup unused Makefile stuff
2022-05-14 12:13:00 -04:00
Matthew Kilgore
5c4dcdc8aa
Use dlfcn.h on OSX
2022-05-12 00:21:02 -04:00
Matthew Kilgore
c1639b3979
Add basic make build system
2022-05-12 00:21:02 -04:00
Matthew Kilgore
fcec53e55b
Fix text wrapping on last column with variable width fonts
...
Currently there is a bug where if a variable width font is in use and
text printed would exactly fit to the end of the row, it is instead
wrapped and printed on the next line.
Ex. You're printing a character that is 10 pixels wide, starting
from position 90 on an image that is 100 pixels wide. This should fix,
but instead your character will be printed on the next line.
The reason this happens is an off by one error, cursor_x (effectively
the X value passed to LOCATE) is one based even when using a variable
width font where cursor_x represents a pixel location. The location that
check if the next character can fit on the screen never handles the base
one, so it ends up treating the ending Y coordinate as one past where it
will actually end, which makes the code thing the print will go past the
edge of the screen.
To fix we simply subtract one before doing the comparison to give us the
actual ending pixel column.
2022-05-06 17:50:07 -04:00
Matthew Kilgore
55da5f4ce3
Format other various source files
2022-05-06 13:20:30 -04:00
Matthew Kilgore
1aa8d7a42f
Run clang-format on ./internal/c/*cpp files
2022-05-06 13:20:30 -04:00
SteveMcNeill
50eb90f885
Update LodePNG library
...
from 2012 version to 2022 version, which has been quite improved and sped up.
2022-05-03 02:33:45 -04:00
Matthew Kilgore
77aced1b1c
Rewrite distribution logic, download mingw*.exe
2022-04-28 17:21:56 -04:00
Matthew Kilgore
9315646e76
setup_win.bat: create internal/c/c_compiler
...
internal/c/c_compiler no longer contains anything, so git will not
create it. This change makes setup_win.bat create the directory if it's
not already there.
2022-04-28 17:15:35 -04:00
Matthew Kilgore
97240a0b46
Add standalone mingw32 and mingw64 installers
2022-04-28 13:43:09 -04:00
Matthew Kilgore
fbc580c9c5
Delete Mingw32 and Mingw64
2022-04-28 13:42:59 -04:00
phillvancejr
8f0c08e2ec
Added global scope operator :: to the socket bind call to prevent clashes with <functional> std::bind in some builds
2021-11-01 10:21:16 -04:00
Roland Heyder
c48bf6776e
Fixed LOC function for files
...
Will correctly return zero (0) now for just opened but yet untouched files.
2021-10-22 23:51:48 +02:00
Fellippe Heitor
0fac593dd6
Update libqb.cpp to allow manual compilation in WinXP
...
Oh, well... there's still life for XP.
2021-10-17 03:56:54 -03:00
FellippeHeitor
56aa5e7e53
Try harder to return window_handle
2021-10-16 23:08:13 -03:00
Roland Heyder
ce3c459dad
Implements the _Bin$ function
...
Usage is analog to the legacy OCT$ and HEX$ functions.
2021-10-14 00:17:35 +02:00
Fellippe Heitor
ab1f20eb3b
Allow PRINT to show content in console even without a new line
...
Closes #74
2021-10-04 00:17:21 -03:00
FellippeHeitor
8d9cd83f6a
Prevent errors when doing internal lbound/ubound checks
2021-09-30 22:40:57 -03:00
FellippeHeitor
1a3f3f5ad1
Add binary name to error message dialog; closes #157
2021-09-29 23:25:47 -03:00
Fellippe Heitor
4995175a16
Exits if without dev
or ctx
.
2021-09-25 23:15:12 -03:00
KindOne
4e91e559dd
Don't exit if missing speakers when using SOUND/BEEP.
2021-09-23 00:57:49 -04:00
FellippeHeitor
5cab1880b5
Uses GetLogicalDrives() in Windows (file dialogs). Closes #183
2021-09-21 02:54:41 -03:00
FellippeHeitor
3e498df414
Fixes watching/sending values for _BIT arrays.
2021-09-20 22:04:24 -03:00
Ashish Kushwaha
8e69e8cf3b
allow 'move' to treated as 'cycle' for _mouseshow
2021-09-14 19:37:08 +05:30
Ashish Kushwaha
0f1dbed8e3
Merge branch 'QB64Team:development' into development
2021-09-12 19:21:01 +05:30
FellippeHeitor
a02243455b
Merge branch 'development' into watch-arrays
2021-09-04 23:57:22 -03:00
FellippeHeitor
7ba11565a5
Adds GetBytes so it's easier to add data to the packet ($DEBUG).
2021-09-03 00:03:28 -03:00
chlorophyll-zz
fcb714133b
Update libqb.h
...
this fixes PR #185
2021-09-02 14:45:10 +02:00
chlorophyll-zz
6c403db7f2
Fix: Ambigous 'data' in global scope
...
Fixes #184
Probably breaks another thing.
Ambigous 'data' in global scope
https://root-forum.cern.ch/t/ambiguous-data-in-global-scope/41490
2021-09-02 13:52:36 +02:00
FellippeHeitor
9aa166e4de
Checks for array's lbound and ubound before fetching data.
2021-08-19 19:10:51 -03:00
FellippeHeitor
3e4d1fc430
Merge branch 'development' into var-export
2021-08-18 21:28:50 -03:00
Luke Ceddia
27e4ee4770
Detect non-x86 based architectures
2021-08-18 22:07:40 +10:00
FellippeHeitor
e791ca2001
Ensures _ConsoleTitle has time to do its thing.
2021-08-18 00:26:06 -03:00
FellippeHeitor
c2eb3c00bc
Merge branch 'development' into var-export
2021-08-18 00:22:55 -03:00
FellippeHeitor
744bd19107
Fixes race condition between vWatch and _CONSOLETITLE
...
It was a love triangle with _WindowHandle in the end, it's complicated.
2021-08-18 00:21:03 -03:00
Luke Ceddia
30d67825bf
Detect aarch64 as 64 bit
2021-08-18 00:04:24 +10:00
FellippeHeitor
2af2f4e2a1
Improves handling/signaling of INPUT/LINE INPUT in $DEBUG mode.
2021-08-14 21:28:21 -03:00
FellippeHeitor
8dddefd002
Brings debuggee window to foreground when using INPUT.
2021-08-14 17:04:25 -03:00
FellippeHeitor
c41af6961f
Prevents checking _WINDOWHANDLE from halting a $CONSOLE app.
...
Would happen when in conjunction with $SCREENHIDE.
2021-08-13 00:51:32 -03:00
FellippeHeitor
cca1593f79
Switches focus to IDE automatically when breakpoint is reached.
...
Windows-only.
2021-08-12 23:00:43 -03:00
FellippeHeitor
0bbc60e73e
Allows reading program_stop
without using _Exit
.
2021-08-04 21:12:33 -03:00
FellippeHeitor
01a3c56685
Allows setting any length string variables from the IDE.
2021-08-03 00:36:21 -03:00
Ashish Kushwaha
7e3a60c50b
added 'cycle' style in _mouseshow
2021-07-31 11:22:10 +05:30
Luke Ceddia
1e76f237de
Supress SIGPIPE on tcp send
2021-07-31 00:06:09 +10:00