Commit graph

4141 commits

Author SHA1 Message Date
UnknownShadow200
bcce489b41 remove debug DPI message 2019-07-23 19:31:17 +10:00
UnknownShadow200
f05aece6f1 get rid of unused Gfx_ApiInfo field 2019-07-22 23:18:54 +10:00
UnknownShadow200
2dc6a143f6 simplify PackedCol_Unhex 2019-07-22 18:01:46 +10:00
UnknownShadow200
a32ffdab30 Show dialog if non-http error occurs when downloading resources 2019-07-22 11:04:27 +10:00
UnknownShadow200
cf5671394a Fix fog incorrectly still applying with a non-full size block, even though camera wasn't actually inside the block (thanks Goodly) 2019-07-22 07:34:17 +10:00
UnknownShadow200
4342482610 Fix modern OpenGL backend crashing 2019-07-21 17:57:15 +10:00
UnknownShadow200
e709ce33f2 Only fill in gpu info when /client gpuinfo is actually called, instead of always filling it at gfx init 2019-07-21 17:40:01 +10:00
UnknownShadow200
fc58658e58 Initial WIP on OpenGL contexts being able to report themselves as lost 2019-07-21 17:15:30 +10:00
UnknownShadow200
4a5594f577 Split up platform and dynamic lib blocks of code in Platform.c for nicer looking code 2019-07-21 16:10:25 +10:00
UnknownShadow200
b410386a2e Avoid a pointless redirect with register button in launcher 2019-07-21 13:46:12 +10:00
UnknownShadow200
9aa7312407 Move ClassicalSharp source into a .zip to cut down on repository zip size 2019-07-20 19:56:16 +10:00
UnknownShadow200
7ec12b458e Make separators in updates/choose mode menu widgets, so they can be properly DPI scaled 2019-07-20 18:37:45 +10:00
UnknownShadow200
8dc0006211 Initial WIP for scaling launcher widgets depending on DPI 2019-07-20 14:11:52 +10:00
UnknownShadow200
8fb63080c8 Quick workaround for #594, a real fix will come later. (Thanks igor725) 2019-07-20 11:10:32 +10:00
UnknownShadow200
65ac893238 Fix windows and OSX builds 2019-07-19 20:48:31 +10:00
UnknownShadow200
b852151211 Fix clear colour/fog/depth function not being properly restored on WebGL context restore
This fixes water not being rendered, makes fog show, and fixes horizon/border of map being completely black
2019-07-19 20:23:09 +10:00
UnknownShadow200
f819e49aaa Fix gui being rendered with solid background after restoring from lost opengl context 2019-07-19 19:16:13 +10:00
UnknownShadow200
d050126868 Reload uniforms when WebGL context is restored
This makes the sky appear when restoring from lost WebGL context
2019-07-19 07:52:20 +10:00
UnknownShadow200
b75b4b4457 Fix wrong declaration of vertex format for direct3d9
Turns out I have been relying on illegal behaviour for 4 years. Awkward..
2019-07-18 22:50:01 +10:00
UnknownShadow200
14c9da9e27 fix last commit introducing possible crash if no data is received from server for over 30 seconds 2019-07-18 21:46:51 +10:00
UnknownShadow200
ff7bbdb1ad Rewrite how contexts are lost and restored
This means a) context isn't constantly destroyed and recreated when resizing window b) WebGL context is now partially restored, although all textures stay completely black
2019-07-18 21:34:39 +10:00
UnknownShadow200
6de770c6a4 Fix makefile not defining DUNICODE on windows for mingw
This fixes 'error setting current directory' and other functions.
2019-07-17 21:05:57 +10:00
UnknownShadow200
8b6b262d7a Don't pointlessly keep checking if skin's downloaded when it's already been downloaded and applied 2019-07-17 07:50:46 +10:00
UnknownShadow200
2e6d8990b8 Simplify skybox rendering a little bit
Gets rid of quite a few CPU instructions, but no change to GPU
2019-07-16 22:24:08 +10:00
UnknownShadow200
e76aab0b55 Use union for PackedCol/BitmapCol, generates slightly better code on all compilers 2019-07-16 21:19:44 +10:00
UnknownShadow200
5c0cd0d871 Remove unused index argument from Utils_IsUrlPrefix 2019-07-15 21:34:18 +10:00
UnknownShadow200
ec39ee90a7 Simplify code related to entity skins 2019-07-15 15:22:28 +10:00
UnknownShadow200
f527fdaa44 Simplify code related to entity nametags 2019-07-15 13:31:23 +10:00
UnknownShadow200
e267d43976 Remove Gfx_SetAlphaTestFunc.
It's not actually supported in the modern GL backend at all, and only ever set internally to discard pixels with alpha > 128.
2019-07-15 11:12:04 +10:00
UnknownShadow200
7eaa434f8e Fix implicit function declaration warning in Audio.c 2019-07-14 20:05:58 +10:00
UnknownShadow200
eb6d5a85dd fix linux and osx builds 2019-07-14 10:41:21 +10:00
UnknownShadow200
c1fdca87b9 Split up Window_InitRaw into Window_AllocFramebuffer/Window_FreeFramebuffer, and call Window_FreeFramebuffer when closing launcher 2019-07-14 10:35:52 +10:00
UnknownShadow200
9b92a5a2c0 Make struct fields lowercase in BlockPhysics and get rid of unnecessary includes in Chat.h 2019-07-13 20:24:24 +10:00
UnknownShadow200
795b2b4f5a Rename from BufferSize to Capacity for StringsBuffer to be consistent with rest of codebase 2019-07-13 15:52:36 +10:00
UnknownShadow200
267345e47e Make packet reading slighly faster by reading strings in-place instead of copying to temp buffer 2019-07-13 12:26:02 +10:00
UnknownShadow200
3725fe0585 oops remove debug connect to 127.0.0.1:25565 2019-07-13 09:12:01 +10:00
UnknownShadow200
9851372277 Use faster alternative to String_InitAndClear, also parse http version instead of relying on http lib 2019-07-13 09:00:28 +10:00
UnknownShadow200
5b47f939c3 Change Bitmap_CopyBlock to Bitmap_UNSAFE_CopyBlock to signify that it doesn't check arguments and will corrupt memory if used improperly 2019-07-12 22:46:45 +10:00
UnknownShadow200
9bb8dfbcfb Fix BITMAPCOL_CONST producing swapped r/b values in web client 2019-07-12 21:47:29 +10:00
UnknownShadow200
508414c96f make field names of structs in LScreens.c lowercase 2019-07-12 20:04:26 +10:00
UnknownShadow200
ee3f89b078 fix not compiling on arm64 linux 2019-07-11 19:10:44 +10:00
UnknownShadow200
0371157084 Fix PowerPC register dumping having compile errors on linux and OSX panther 2019-07-10 21:12:15 +10:00
UnknownShadow200
7753ad8080 Less compile warnings on OSX 2019-07-10 00:21:07 +10:00
UnknownShadow200
9244323a19 Cleanup Logger.c
Instead of having one giant entangled if ISA if OS function mess for dumping registers, instead separate into per-OS functions
2019-07-09 22:08:21 +10:00
UnknownShadow200
dccabb93c4 make fields in resources structs lowercase 2019-07-08 22:14:00 +10:00
UnknownShadow200
d45b37ded2 Don't link to mingw startup files in win64 build too.
Reduces size of 64 bit windows exe by 10kb
2019-07-07 07:21:48 +10:00
UnknownShadow200
4949e64663 Unify http backends buffer init/expanding 2019-07-06 21:30:44 +10:00
UnknownShadow200
62bab79201 need sleep fix all builds being broken 2019-07-06 07:52:26 +10:00
UnknownShadow200
66978c20c9 Also dump full paths to all loaded modules on OSX 2019-07-06 07:48:46 +10:00
UnknownShadow200
f0ed956b65 Make backtrace consistent between all platforms
This means module name is added on windows, address is only shown once on linux, and is a lot shorter (no padding/frame number/duplicate address) on OSX
2019-07-06 00:43:23 +10:00