Commit graph

4147 commits

Author SHA1 Message Date
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
UnknownShadow200
68827ce82e Store pointers to fonts in widgets and slightly optimise drawing clipped text 2019-08-04 20:27:23 +10:00
UnknownShadow200
3584522e8f Scale up servers table default column widths with DPI 2019-08-04 09:32:53 +10:00
UnknownShadow200
dd7b1c1bca Rename LScreen->Reposition to more logical LScreen->Layout 2019-08-04 08:49:42 +10:00
UnknownShadow200
6035276344 Fix register dump getting truncated with arm64/ppc64 2019-08-03 20:22:03 +10:00
UnknownShadow200
e4f192e091 Partially fix just touching on web client causing camera to jerkily rotate 2019-08-03 07:05:51 +10:00
UnknownShadow200
49df32be8f cleanup Window.c and only declare win_rawMouse once instead ofmultiple times (windows,sdl,web backends) 2019-08-02 22:51:11 +10:00
UnknownShadow200
aa345a5c5f don't pointlessly use Random_Range with 0 min, use Random_Next instead 2019-08-02 22:15:03 +10:00
UnknownShadow200
15079ee79f Actually implement String_UNSAFE_SubstringAt as a function instead of a macro on top of String_UNSAFE_Substring
This saves around 1ms when loading 431 fonts on my PC
2019-08-02 19:37:03 +10:00
UnknownShadow200
9813402aee cleanup drawer2d code 2019-08-01 18:25:07 +10:00
UnknownShadow200
874509d5df Fix egl backend not behaving properly after resize 2019-08-01 17:28:02 +10:00
UnknownShadow200
219a8e9cf9 Properly check result code returned by IDirect3DDevice9_Reset 2019-08-01 13:53:08 +10:00
UnknownShadow200
59b4125a03 remove inline functions that were only used once
Turns out the web client doesn't actually inline inline functions
2019-08-01 08:16:08 +10:00
UnknownShadow200
abd3e2853b Scale up resources menu background box with DPI 2019-07-30 22:53:14 +10:00
UnknownShadow200
f833db6ba8 Fix caret alternating in launcher input widgets causing whole input widget to get redrawn instead of just caret area
Also make all launcher widget drawing behaviour consistent with dirtying area and not drawing while hidden
2019-07-30 21:38:17 +10:00
UnknownShadow200
2598ba18ce Make getting shadow colour for text a bit faster 2019-07-30 20:39:27 +10:00
UnknownShadow200
1a9ada3590 Don't leak memory when a resource fails to download in launcher 2019-07-29 22:53:16 +10:00
UnknownShadow200
186172e1d1 and simplify launcher screen code 2019-07-29 20:49:56 +10:00
UnknownShadow200
e3eee65df1 simplify launcher widgets code 2019-07-29 20:13:23 +10:00
UnknownShadow200
aabfab54cf use more compat tablist representation in memory, 1kb less usage 2019-07-29 18:08:41 +10:00
UnknownShadow200
e105b53648 test commit to ensure I didn't break auto build from github 2019-07-29 10:21:14 +10:00
UnknownShadow200
845679c7a5 Scale up table scrollbar and gridlines with DPI 2019-07-28 23:41:14 +10:00
UnknownShadow200
8c57e07132 Box/Seperator widgets in launcher scale with DPI 2019-07-28 23:30:32 +10:00
UnknownShadow200
87e385d00a Don't redraw background behind servers table because that's a complete waste, oops.
Makes dragging columns in servers table 4-5 times more responsive
2019-07-28 21:10:17 +10:00
UnknownShadow200
3286dcf58c Make drawing stone/dirt background for classic mode launcher quite a bit faster 2019-07-28 18:56:39 +10:00
UnknownShadow200
29cd6608ff Fix table overlapping scrollbar/bottom input with high DPI in launcher 2019-07-28 17:13:12 +10:00
UnknownShadow200
2107826b99 Remove Window_X/Y because the game shouldn't rely on them
For instance they are always 0 in the web client
2019-07-28 16:22:29 +10:00
UnknownShadow200
9778e4534f remove usage of Point2D 2019-07-28 15:55:14 +10:00
UnknownShadow200
8f36382eb6 Change Cursor_SetScreenPos to Cursor_SetPosition which takes window coords, and remove Cursor_GetScreenPos 2019-07-28 15:37:54 +10:00
UnknownShadow200
6646b10059 scale window_create width/height based on DPI settings on windows 2019-07-28 13:24:40 +10:00
UnknownShadow200
7fc6007e49 Get rid of Window_CreateSimple and just have Window_Create work out x/y instead 2019-07-28 13:12:59 +10:00