Commit Graph

4830 Commits

Author SHA1 Message Date
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
jacob1
190107c1b2 fix CLNE 2018-05-08 00:01:34 -04:00
mniip
deaa17a947 Work around some holes in the BitmaskType specification 2018-05-08 06:05:12 +03:00
mniip
d404f4a538 Fix some C++14-isms.
Apparently C++11 is more strict regarding default argument and return
value conversions. Also return brace-initializer construction has had
little support.
2018-05-08 05:48:32 +03:00
mniip
ea1d574caf Add copy-paste to the font editor 2018-05-08 03:58:30 +03:00
mniip
954086fb86 Fixx macos compilation 2018-05-08 03:10:19 +03:00
mniip
51adf37853 Fix order and composition of String(char[]) operators to make clang happy 2018-05-07 08:10:50 +03:00
mniip
e0af41350a Add String/Format commentary 2018-05-07 06:22:24 +03:00
jacob1
56cba4595c Merge branch 'unicode' 2018-05-06 20:15:23 -04:00
jacob1
49703404be change almost all the rest of the rng calls to .chance/.between 2018-05-05 11:56:17 -04:00
mniip
f8586ea3a2 Remove ByteString::Stream 2018-05-04 23:10:39 +03:00
mniip
e29d2c58c2 Copy the Format interface too 2018-05-04 21:12:47 +03:00
mniip
1485ae5a21 Fix incorrect uses of String(char[]) 2018-05-04 20:05:26 +03:00
mniip
d6a92bdab5 Copy the String interface to ByteString 2018-05-04 14:45:57 +03:00
jacob1
ef2a0c2c81 fix single pixel pipe, remove ugly color bit hack 2018-05-03 21:40:48 -04:00
jacob1
44a8665f6f update rng functions in a lot of element files to use .between/.chance
conversion is still very incomplete
2018-05-02 23:53:15 -04:00
mniip
7f5c164d22 Fix partial name element search 2018-05-03 05:22:05 +03:00
mniip
730cf0806a Fix number to string conversion failing after a failed string to number
conversion
2018-05-03 04:55:20 +03:00
mniip
5d80d77f55 Remove String::Stream and with it the locale hacks.
Also fixes the crash when compiled with -O
2018-05-03 04:18:40 +03:00
mniip
ecb41661f8 Fix String::{Begins,Ends}With and with it a bunch of stuff 2018-05-03 04:12:09 +03:00
mniip
5ff8cefca4 Replace String::Stream parsing with number splitting 2018-05-03 04:11:43 +03:00
mniip
1ea7a035d1 Add Number parsing facilities 2018-05-03 02:54:32 +03:00
mniip
4b92926f0d Fix partition again 2018-05-03 00:45:22 +03:00
mniip
2f9cab7e54 Move "big" methods out of the header. Also fix Partition 2018-05-03 00:34:47 +03:00
mniip
d1610c5127 Add string partitioning methods 2018-05-02 23:42:34 +03:00
mniip
6c9cb174fb Change some uses of String::Stream to StringBuilder 2018-05-02 22:11:41 +03:00
mniip
7523c14252 Reword the Format interface 2018-05-02 08:45:50 +03:00
mniip
eeacc90fc5 Add StringBuilder formatters 2018-05-02 06:54:28 +03:00
mniip
f864f81a76 StringBuilder mockup 2018-05-02 05:38:08 +03:00
mniip
ced7b0c993 Move the ConversionError class 2018-05-02 02:22:10 +03:00
mniip
a121c62c3b Add some helper methods and rewrite some of the string manipulation code 2018-05-02 01:32:04 +03:00