Commit Graph

5210 Commits

Author SHA1 Message Date
jacob1
1c1bcb0cdc fix stasis wall not having any blob mode effects 2018-07-21 21:26:14 -04:00
jacob1
92244f78bb initialize some variables to fix -Werror=maybe-uninitialized warnings
most aren't actually bugs, but gcc isn't able to determine that the paths it can follow guarantee they are initialized
2018-07-08 00:49:35 -04:00
jacob1
8e09edd188 fix typo in favorites menu 2018-07-07 21:41:36 -04:00
krawthekrow
143ba20191 check for correct prefix in hex property decoding 2018-07-07 19:12:12 -04:00
LBPHacker
a3a3b3be1a Make ctrl+shift+click toggle favorite status 2018-07-07 19:10:41 -04:00
LBPHacker
27f5ba199d Fix PIPE being reversed 2018-06-24 10:37:19 -04:00
krawthekrow
11d33d5b77 call rayt linear detector 2018-06-24 10:37:11 -04:00
Mrprocom
2935a94b27 Update in-game rules to match the new TPT rules 2018-06-24 10:37:01 -04:00
Antoine Belvire
953687a5c2 Fix mime-info format
update-mime-info may fail to parse the file if attributes are not
between quotes.
2018-06-24 10:36:37 -04:00
jacob1
9a707003aa fix blue line in smudge tool texture 2018-06-05 23:15:09 -04:00
jacob1
969e99c78c also fix SplitFromEndBy in String 2018-06-05 00:26:31 -04:00
jacob1
53f6807ea6 make fps update less often in hud 2018-06-04 23:48:40 -04:00
jacob1
01b9a7c7e8 fix Saves/ appearing before all saves in local save browser 2018-06-04 23:34:40 -04:00
jacob1
0e383e1045 fix scrolling in browsers being reversed 2018-06-01 00:22:06 -04:00
mniip
48a333f0de Fix some scrolling issues 2018-05-30 13:35:44 +03:00
jacob1
7393c577f8 fix double scale firstrun check. We shouldn't need this popup anymore though 2018-05-28 14:02:50 -04:00
jacob1
3ce906b25d even better desktop size detection, now accounts for taskbars / panels 2018-05-28 13:55:49 -04:00
jacob1
a40ab1e50d don't load invalid window positions, only load window pos on first run 2018-05-28 13:33:01 -04:00
jacob1
d4255d1974 minor SConscript cleanup 2018-05-28 11:55:54 -04:00
jacob1
ce6c913c88 Merge branch 'sdl2' 2018-05-28 11:49:35 -04:00
jacob1
40d836106f update libraries required for static sdl2 compile 2018-05-26 19:03:55 -04:00
jacob1
324602fe26 adjust for window border when loading window position too
fixes window moving up every time on windows, on linux the border size gets reported as 0 so nothing changes there
2018-05-26 17:38:01 -04:00
jacob1
743ec98e3f add resizable window and original fullscreen options 2018-05-25 21:19:44 -04:00
jacob1
58127f355b fix windows / renderer compile (renderer requires sdl for now) 2018-05-25 21:19:44 -04:00
jacob1
841022c907 recenter linux icon 2018-05-25 21:19:44 -04:00
jacob1
002ab799c5 whitespace fixes 2018-05-25 21:19:44 -04:00
jacob1
7ac7eec6cf more sdl2 fixes:
don't recreate window every scale / fullscreen change
better renderer handling, input scaling no longer needed even if window resizing is enabled
load/save window position (replaces old windows code to do this)
calculate initial mouse position on startup because sdl no longer does this for us
2018-05-25 21:19:44 -04:00
jacob1
802ec4d252 remove icon debug stuff 2018-05-25 21:19:44 -04:00
jacob1
bd8550c2d5 fix a few more sdl 2 bugs:
mouse movement captured outside the window when mouse is down
fullscreen now focuses the window (there is a bug where you have to click once to get mouse input, though)
add linux icon, will need to be redone properly because it's offcentered with a black border (mask isn't present)
allow typing ~ into the console + some other fixes
2018-05-25 21:19:44 -04:00
jacob1
ba362c1ab7 fix options menu crash 2018-05-25 21:19:44 -04:00
jacob1
e5230b5b9f upgrade to SDL 2
Still currently in process, there are some issues:
Windows version doesn't work, mac version might not work, opengl might not work
Icon doesn't work (on Linux at least)
Lua will need some changes, there are some sdl 1.2 hacks in there
When entering fullscreen, the window loses focus
When holding down mouse out of bounds, mouse move events stop being sent
When letting go of mouse out of bounds, mouseup event doesn't take into account double scale mode
Clicking on startup without moving mouse will draw at 0,0 for a frame
Renderer probably won't compile because USE_SDL doesn't entirely work

... and maybe others

Some nice things were done though:
no more blit2, sdl can do the scaling itself
3d effect removed, no reason to support this joke any longer
No need to support copy/paste ourselves, sdl does it now
text handling done much better now, separate events for key presses and text input
when a new window is shown, all events ignored until next tick (ignore textinput event if window shown from key press event like console)
2018-05-25 21:19:44 -04:00
jacob1
38fac7046a add #define NOMINMAX before windows.h includes 2018-05-17 21:49:46 -04:00
jacob1
e8373ffa4c mac compile fix 2018-05-17 21:31:26 -04:00
jacob1
3b428789c7 fix selecting another element turning off find tool 2018-05-17 20:59:37 -04:00
jacob1
6ef0f065a6 fix .what methods on exceptions 2018-05-17 20:55:29 -04:00
mniip
aa389dbbfd Add missing locale header 2018-05-14 05:38:10 +03:00
mniip
30dd49235d Add ToLower/ToUpper 2018-05-14 05:12:32 +03:00
jacob1
36a545124e fix setting element properties in legacy lua api 2018-05-13 16:16:14 -04:00
mniip
9f6f43cf90 Fix float parsing in the PROP tool 2018-05-13 04:49:31 +03:00
mniip
22e1de3fe8 Work around a thread_local bug in MinGW with the WIN32 threading model 2018-05-13 04:32:28 +03:00
mniip
196371316d Temporary workaround to allow compilation on MinGW 2018-05-10 20:40:25 +03:00
mniip
a87acf56b7 Replace strdup with mystrdup 2018-05-10 10:34:45 +03:00
jacob1
8a8cbb81e4 fix getting/setting description in elements api 2018-05-10 00:27:55 -04:00
mniip
b8c9888d87 ...Fix opengl renderer compilation too 2018-05-09 20:16:28 +03:00
mniip
67df4fd963 Fix renderer compilation 2018-05-09 20:15:26 +03:00
mniip
3781b36c31 Merge branch 'data' 2018-05-09 19:28:58 +03:00
mniip
12e79ea111 Fix compilation on windows 2018-05-09 19:05:39 +03:00
mniip
f30215bb83 Merge remote-tracking branch 'origin/master' 2018-05-08 08:36:15 +03:00
mniip
f8da7452c6 Remove codecvt 2018-05-08 08:35:06 +03:00
mniip
32aaafee94 Move data into either cpp files or const arrays 2018-05-08 07:38:55 +03:00