Commit graph

4394 commits

Author SHA1 Message Date
UnknownShadow200
7d9a18a7c1 Save a few instructions because we don't need to mask with 255 in PackedCol_Tint 2019-10-06 10:28:56 +11:00
UnknownShadow200
e5f8678140 Fix plugins not working with non-MSVC builds 2019-10-06 09:11:36 +11:00
UnknownShadow200
aa05582f7e Fix PackedCol to work on big endian. We must not forget our PowerPC brethren. 2019-10-04 20:06:34 +10:00
UnknownShadow200
1de1f2ac64 Fix OpenGL build 2019-10-04 19:02:44 +10:00
UnknownShadow200
ddd8c3c409 Fix failing to compile with OpenGL backend 2019-10-04 08:13:38 +10:00
UnknownShadow200
70db1453e9 Fix not compiling with really old GCC (e.g. ancient powerpc mac) 2019-10-04 07:46:21 +10:00
UnknownShadow200
387ff702b6 Make default env colours constants instead of const variables 2019-10-03 16:58:54 +10:00
UnknownShadow200
d98584f898 Use raw uint32_t instead of union for PackedCol
Hopefully this doesn't break too much
2019-10-03 15:35:39 +10:00
UnknownShadow200
ab1dc2418c Make multiplying two colours a function instead of inline
Despite its appearance, it balloons to 30-40 instructions
2019-10-03 13:47:32 +10:00
UnknownShadow200
5675887e0e revert msgbox on osx 2019-10-03 09:01:01 +10:00
UnknownShadow200
baf8a1dbc7 show a msgbox of where I'm running from on osx 2019-10-03 08:50:38 +10:00
UnknownShadow200
5ca7aab58b Release 1.0.8 2019-10-03 08:22:35 +10:00
UnknownShadow200
1335161864 Show cursor before showing message box on all backends, not just the carbon/cocoa backends. 2019-10-03 08:12:26 +10:00
UnknownShadow200
61284060c4 Fix cocoa backend not compiling 2019-10-03 07:54:47 +10:00
UnknownShadow200
2cf32a7c31 Cache frequently used selectors instead of calling sel_registerName all the time in cocoa backend 2019-10-03 07:50:01 +10:00
UnknownShadow200
ca0698c083 hide some stuff that didn't need to be exposed publicly in Graphics.h 2019-10-01 22:27:13 +10:00
UnknownShadow200
1e1e6fc199 Only raise mouse down/up/move events when mouse is inside window on cocoa backend
Also remove debugging print statements
2019-09-30 21:56:41 +10:00
UnknownShadow200
1677f82580 Fix resizing from bottom left instead of top left corner with /client resolution on cocoa backend 2019-09-30 21:32:13 +10:00
UnknownShadow200
e5ed98c5ce Make scroll wheel must less janky on cocoa 2019-09-30 21:07:14 +10:00
UnknownShadow200
7431825e5f Fix mouse being invisible with dialog boxes and fix /client res insta-crashing with cocoa backend 2019-09-30 17:15:12 +10:00
UnknownShadow200
5d64fbb6ac Attempt to fix texture warping of bedrock outside map at certain angles with 4096 render distance (thanks tornato)
Done by breaking down into 2048x2048 instead of 65536x65536 quads at most
2019-09-29 23:20:26 +10:00
UnknownShadow200
4fa3dd2173 Map numpad clear on OSX keyboards to num lock 2019-09-29 22:27:31 +10:00
UnknownShadow200
ed193a0a92 Implement down/up for modifier flags in cocoa backend (shift/ctrl/alt/cmd/caps lock) 2019-09-29 22:14:42 +10:00
UnknownShadow200
23880246fb 64 bit osx build now updates to 64 bit osx version 2019-09-29 18:39:49 +10:00
UnknownShadow200
bdf9482fa5 print less debugging info 2019-09-29 17:55:58 +10:00
UnknownShadow200
07c4a4795c Add documentation for building 64 bit cocoa backend
Also show 'alpha' instead of 'beta' for coca backend in titlebar
2019-09-29 17:51:27 +10:00
UnknownShadow200
5140d604cf Implement cursor hiding/showing on cocoa backend 2019-09-29 17:44:05 +10:00
UnknownShadow200
68d26ee554 Fix setting cursor position moving to incorrect locations after moving window on cocoa 2019-09-29 17:13:58 +10:00
UnknownShadow200
7c96665b9d Finally fix launcher window redrawing on cocoa backend 2019-09-29 15:13:58 +10:00
UnknownShadow200
696b0ab4f0 actually get window redrawing to sort of work with cocoa
now you don't have to move your mouse over areas to force a redraw. But it still doesn't draw partial redraws properly sometimes.
2019-09-29 14:37:10 +10:00
UnknownShadow200
5b166ee496 Get rid of Init method in Widgets as unnecessary now 2019-09-28 21:55:19 +10:00
UnknownShadow200
c0595f7fb6 Simplify player list widget related code
To be consistent with other widgets, player list widget doesn't hook into events anymore.
2019-09-28 17:19:33 +10:00
UnknownShadow200
4889fc6ec0 Fix entries in tab list underneath cursor position still getting shifted right 4 pixels even when cursor isn't visible (Thanks 123DMWM) 2019-09-28 07:19:37 +10:00
UnknownShadow200
be20b6d093 Move platform-specific dynamic lib default file extension out of Game.c and into Platform.c where it belongs 2019-09-28 07:05:24 +10:00
UnknownShadow200
7cfd8a8570 Update by moving file instead of shelling out to batch script. No more 5 second wait in command prompt, updating is essentially instant now.
Sadly this doesn't fix updating not working on windows 98 still.
2019-09-27 15:18:51 +10:00
UnknownShadow200
0e5b1faa23 Implement fullscreen and getting window state (minimised/normal/fullscreen) on cocoa backend 2019-09-26 19:27:37 +10:00
UnknownShadow200
7c287922db fix not compiling anywhere 2019-09-26 17:58:56 +10:00
UnknownShadow200
fc38e999c4 Get key presses (i.e. actual characters in chat input) working 2019-09-26 08:00:19 +10:00
UnknownShadow200
884e59d864 Don't show the 'download direct3d9 build instead' in warning messages when running on intel gpu + opengl on non-windows OS 2019-09-26 07:17:00 +10:00
UnknownShadow200
61ccbdcaad Fix beeping anytime a key was pressed on cocoa backend 2019-09-25 07:48:56 +10:00
UnknownShadow200
3bb930a35b Go all out and allow any code page 437 character in passwords.
Also only let you input 0-9 in colours input widgets
2019-09-23 08:26:57 +10:00
UnknownShadow200
46ae0bb41b Allow ampersands in passwords in launcher (Thanks OK) 2019-09-23 07:15:50 +10:00
UnknownShadow200
cdd5485a1f Properly DPI offset hacks status text 2019-09-22 19:20:24 +10:00
UnknownShadow200
a637aa517d Get cursor position setting working with cocoa 2019-09-22 18:55:03 +10:00
UnknownShadow200
cde36cc0f2 Don't keep track of mouse wheel position because we only ever care about the delta anyways 2019-09-22 08:56:14 +10:00
UnknownShadow200
d167b227da Get 'quit' in dockbar to work for cocoa 2019-09-20 19:35:05 +10:00
UnknownShadow200
af0f7f9d89 Fix close crashing the game and launcher with cocoa 2019-09-18 22:43:01 +10:00
UnknownShadow200
c5d7873808 Work on handling resize/move/focus/minimise/close with cocoa
Mostly work but resize still crashes and close doesn't properly work
2019-09-18 22:10:22 +10:00
UnknownShadow200
d616cf060c Remove WINDOW_STATE_MAXIMISED and related code because it's not needed anymore. 2019-09-18 20:29:09 +10:00
UnknownShadow200
a60a502154 Get the actual game rendering on cocoa backend 2019-09-17 21:33:06 +10:00