Commit graph

4277 commits

Author SHA1 Message Date
UnknownShadow200
45358517d9 Redesign SaveLevelScreen to seperate out init/contextrecreated stuff. Fixes 'overwrite existing?' getting reset on window resize.
Also move to getting rid of widget->Init
2019-08-18 12:29:40 +10:00
UnknownShadow200
fa4e609c73 Redesign genscreens and edithotkeyscreen to separate out init/contextrecreated stuff.
This means resizing the window won't cause the 'key: press a key..' to reset itself to 'key: K', despite still intercepting the next key
2019-08-18 09:31:06 +10:00
UnknownShadow200
a8c9c471a0 Fix list screen disabling left button even if there's still 1-4 more entries before the current one 2019-08-17 20:59:54 +10:00
UnknownShadow200
02deabc0da get rid of keypress from widgets (only inputwidget used and needs it), fix edithotkey screen not showing 2019-08-17 20:41:42 +10:00
UnknownShadow200
6c90fdd884 Rename elementsXYZ to blocksXYZ in widgets 2019-08-17 17:56:36 +10:00
UnknownShadow200
26120c219a Kill off GuiElem and Recreate method 2019-08-17 09:45:54 +10:00
UnknownShadow200
5006716c4c Move widgets to base Screen and move away from using Recreate method
Also fix texture pack screen messing up after resize
2019-08-17 09:34:31 +10:00
UnknownShadow200
2a4fb3208a Fix keydown not working 2019-08-17 07:53:03 +10:00
UnknownShadow200
ab6df2cc7a cleanup code a bit 2019-08-16 21:34:43 +10:00
UnknownShadow200
f8a4f84e7b Fix build on freebuild and fix makefile on solaris 2019-08-15 23:18:32 +10:00
UnknownShadow200
b54a4ea143 fix broken linux build 2019-08-15 21:59:44 +10:00
UnknownShadow200
ce715a4001 And now starting the actual game works when in directories with characters like 敨
also completely untested so I hope I didn't break non-windows..
2019-08-15 21:37:46 +10:00
UnknownShadow200
c3f9110778 First phase of redesigning GetExePath to work with full unicode
This means the game will successfully set current directory now even if it's got say a Ӛ character in it
2019-08-15 21:09:41 +10:00
UnknownShadow200
ed71eaa588 rewrite OptionsGroupScreen 2019-08-15 15:24:11 +10:00
UnknownShadow200
bb4d963a70 start rewriting overlays 2019-08-15 12:40:55 +10:00
UnknownShadow200
242ffea6e2 simplify listscreen 2019-08-15 08:48:35 +10:00
UnknownShadow200
bf6c81189d Reuse buttons/widgets arrays and save 5kb of memory 2019-08-14 23:12:06 +10:00
UnknownShadow200
5934c3618b Fix cursor being visible at wrong time
And gen/save menus show up properly now
2019-08-14 07:52:03 +10:00
UnknownShadow200
18e780ae2e Don't redraw when launcher window when focus is lost/gained
Fixes launcher window contents getting drawn over another window when you try to switch to another app on ReactOS
2019-08-12 21:38:09 +10:00
UnknownShadow200
996b13436f Fix showing dialog and resizing window to cause launcher window to appear broken or missing pixels on ReactOS 2019-08-12 21:10:45 +10:00
UnknownShadow200
22dea901ee Get rid of unused wasDown argument for KeyDown handler in screens/widgets 2019-08-12 18:02:56 +10:00
UnknownShadow200
340555833e Cleanup list screens 2019-08-12 15:52:27 +10:00
UnknownShadow200
c06203bc7d Now clicking partially works 2019-08-12 11:47:19 +10:00
UnknownShadow200
347fdd0ffc No more compile errors but still completely broken 2019-08-11 21:37:11 +10:00
UnknownShadow200
f3198c31c3 use sys/ucontext.h everywhere instead 2019-08-11 21:16:27 +10:00
UnknownShadow200
cf1dc90a06 Make Clipboard_GetText consistent between backends
Previously windows/X11 would reset dst->length to 0 before appending, while other backends would just append. Now all backends just append.
2019-08-11 19:50:25 +10:00
UnknownShadow200
30d807eea0 Remove getcontext usage.
This was only used with crashes due to Logger_Abort/Loggert_Abort2. And in those cases, the message and backtrace are what actually matter.
2019-08-11 13:15:54 +10:00
UnknownShadow200
3d82f65f45 Expose Chat_LogTime directly instead of Chat_GetLogTime function 2019-08-11 12:10:15 +10:00
UnknownShadow200
445ff1c5a3 Fix trying to compile using makefile on osx failing with 'No rule to make target 'darwin' 2019-08-11 08:08:02 +10:00
UnknownShadow200
1308acaa71 now with a few less compile errors 2019-08-11 07:50:29 +10:00
UnknownShadow200
9eefb24253 Phase 1 of screens rewrite 2019-08-10 17:08:42 +10:00
UnknownShadow200
49714a38fb Use thread_stack_pcs/GetGlobalMouse (10.1) instead of backtrace/HIGetMousePosition (10.5), this makes the game compatible with Tiger 2019-08-09 20:11:53 +10:00
UnknownShadow200
9a620753b6 quick fix for fullscreen crash 2019-08-09 08:13:56 +10:00
UnknownShadow200
b1e95d9cd7 return an error code if InternetQueryDataAvailable fails instead of just breaking out of for loop 2019-08-08 23:21:22 +10:00
UnknownShadow200
188c052371 Reuse 1 buttons array between all KeyBindingsScreen, reduces memory usage by 3kb 2019-08-08 22:18:15 +10:00
UnknownShadow200
283f753b3e Simplify menu input code 2019-08-08 22:02:42 +10:00
UnknownShadow200
25d6518931 more cleanup of screen/menu 2019-08-08 21:14:39 +10:00
UnknownShadow200
bea6e546c1 Make Gfx_CreateTexture always return 0 if context is lost, instead of doing it in Drawer2D_Make2DTexture
Also start cleaning up screens code
2019-08-08 20:00:00 +10:00
UnknownShadow200
c4d70170a0 Use DisconnectScreen_Show etc instead of DisconnectScreen_MakeInstance 2019-08-08 19:26:39 +10:00
UnknownShadow200
981897f3fc Initial work on combining HUDScreen/ChatScreen 2019-08-08 17:52:50 +10:00
UnknownShadow200
ec2cbdb873 Attempt to use raw mouse for camera movement on OSX, hopefully this doesn't break it 2019-08-07 23:55:42 +10:00
UnknownShadow200
fd3fac3b0e Set max redirects in libcurl backend to 20
If a webserver is doing more redirects than that I think it's just stuffed
2019-08-07 07:31:36 +10:00
UnknownShadow200
137813cec8 Don't crash if out of memory reading dat/fcm/lvl/cw maps or .wav files 2019-08-06 22:07:25 +10:00
UnknownShadow200
740ba21c78 Don't crash if out of memory allocating screenshot temp bitmap for OpenGL 2019-08-06 21:41:17 +10:00
UnknownShadow200
b52aea902d Increase maximum frame delay for animations from 32767 to 65535 2019-08-06 21:31:34 +10:00
UnknownShadow200
78d34c6da9 minorly optimise particle/name vertex drawing 2019-08-06 18:38:08 +10:00
UnknownShadow200
91434616ae Optimise vertex initing methods in EnvRenderer 2019-08-06 15:16:08 +10:00
UnknownShadow200
db2fd79ba6 sethotbar extension thingy 2019-08-06 12:49:10 +10:00
UnknownShadow200
4a6e2c3419 Scale up flags with DPI 2019-08-06 12:25:02 +10:00
UnknownShadow200
29b7217044 Png_Encode returns an error instead of aborting on out of memory
Now less chance of crashing with giant texture packs/skins
2019-08-05 22:23:08 +10:00