4664 Commits

Author SHA1 Message Date
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
UnknownShadow200
824e43a1ea
default compiler should be clang not gcc for FreeBSD in readme 2019-07-28 07:48:32 +10:00
UnknownShadow200
9fe0b6805a Move stuff out of Resources.h and into Resources.c 2019-07-28 07:32:19 +10:00
UnknownShadow200
3fc7f0edb1 log DPI to console instead 2019-07-26 20:21:11 +10:00
UnknownShadow200
df83310b59 remove unused CC_ALIGN_HINT from Core.h 2019-07-25 19:32:40 +10:00
UnknownShadow200
4b192c351a Fixup comments in Http.h 2019-07-25 17:21:41 +10:00
UnknownShadow200
b2669696b3 Fix game having improper timing on OSX 10.5 powerpc (thanks doctorj1)
This caused behavour such as showing 5 FPS when running at 60, movement being way too fast, etc
2019-07-25 08:50:14 +10:00
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