Commit Graph
56 Commits
Author SHA1 Message Date
Martin Natano aa87f85eef Decouple <cstdint> 2023-04-21 22:13:41 +02:00
Martin Natano 78fb2e9fc3 Decouple <cstddef> 2023-04-20 11:21:29 +02:00
Martin Natano b68ca517e6 Clean up math functions
- Remove checking for standard functions from the build system
- Prefix all invocations with std::
- Replace suffixed functions with unprefixed versions
- Include <cmath> in all files that use it and remove the global include

e.g. floorf(x) -> std::floor(x)
2023-04-19 19:31:40 +02:00
Brian Phlipotandteejusb d079940fea Address PR feedback. 2023-02-02 11:54:17 -08:00
Brian Phlipotandteejusb 4a6b1a743c Enable more compiler warnings and treat them as errors. 2023-02-02 11:54:17 -08:00
Martin Natano 3eb239ad3b Replace deprecated macOS APIs with modern equivalents 2022-06-05 12:04:37 +02:00
Tommy Li d8acd46319 More synchronous call to the main thread to avoid crashes 2019-12-22 12:56:39 -06:00
tommy.li 81a041e3dd "Fixed" some Objective-C API issues blocking the game from launching 2019-11-16 00:31:47 -06:00
PrcuvuandGitHub 44b76446bb Merge branch '5_1-new' into win64 2019-10-06 00:55:50 +08:00
Tracy Ward dfb524a547 Fix incorrect usage of GetLastError in LLW_Win32
GetLastError must be called before any other function which could possibly
change it, otherwise we will lose the error code.

(backport from master)
2019-10-04 08:56:03 -04:00
Prcuvu 1fa9bb387c Fix for *nix build 2019-10-03 12:17:53 +08:00
Prcuvu 54c067f48d Fix Windows x64 type inconsistency regarding RageTexture 2019-10-03 08:58:14 +08:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Colby Klein 96384e4c05 Fix ShowMouseCursor preference on windows 2019-03-18 15:52:50 -07:00
Colby Klein b80f5e3ed4 microsoft why 2019-03-17 10:55:09 -07:00
TatshandColby Klein b8a79cd0f6 Allow linking against system libraries for almost everything (#1790) 2019-02-16 08:32:52 -08:00
Drew BarbarelloandColby Klein 557be7cf1b 5 1 new backport x11 fs rework (#1485)
* Use XRandR 1.2 to set fullscreen resolution for single output

Squash of roothorick's PR #497
(also includes Kyzentun's CMake changes from PR #716)

* Cherry-pick json c++1x stuff (b9e3d7174e)

* Cherry-pick c++11 support from 5bba5c0038 and 9f8b045309

* rework Linux (X11) fullscreen, improve display-related Graphics Options

Implement option to select between monitors for exclusive fullscreen mode
on X11 (using XRandR 1.2), or use a fullscreen borderless window.

Reimplement resolution/refresh rate/display mode-related option rows
using Lua, update choices dynamically so only known-good groupings of
resolution/refresh rate/aspect ratio can be selected.

Minimally update Windows/MacOS LowLevelWindow implementations to support
changes made for Linux side. Fullscreen Borderless Window/multi monitor
support from X11 not implemented for those in this commit.

* allow forcibly disabling xinerama use on Linux

When libXinerama is available, SM tries to use it to find the proper
monitor indexes to use to set _NET_WM_FULLSCREEN_MONITORS (on borderless
fullscreen). xfwm4 seems to assume that monitors are numbered in increasing
order from left to right (rather than using the Xinerama-assigned numbers),
so _NET_WM_FULLSCREEN_MONITORS misbehaves on Xfce.

This commit bypasses use of libXinerama, and instead forces SM to induce fullscreen
on the desired monitor in the backup, hacky way: remove all window hints, move window
to desired monitor, then add _NET_WM_STATE_FULLSCREEN hint. This works on
mutter and Xfce.

* Remove multiple warnings on redundant define.

This used to be hard-coded due to pthread related items, but now it's dynamically determined.

* fix _fallback menu behavior for unrecognized aspect ratios

* Fix error recreating existing FS texture

* Bump deployment target to 10.7 to use libc++ on XCode 8

* Add explicit casts to please clang

* Update changelog
2017-06-18 08:55:16 -07:00
Jason Felds 541389ea7d Resolve casting warning where no one would check. 2015-03-25 22:09:46 -04:00
Ben "root" Anderson 859a10e5c8 GCC needs these casts to be explicit 2013-10-25 15:13:47 -05:00
Ben "root" Anderson b3c76a3814 UNIQUE_NAME -> SM_UNIQUE_NAME (avoid conflict with MinGW headers) 2013-10-24 19:27:23 -05:00
Jason Felds 07b9fb6da5 The big NULL replacement party part 6.
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -04:00
Jason Felds 28e5148dec The big NULL replacement party part 5.
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds a3f37dc2b4 The big NULL replacement party part 3.
Getting there I think.
2013-05-03 23:16:39 -04:00
Jason Felds ba59dd1656 The big NULL replacement party part 2.
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds 9f24627bf9 The big NULL replacement party part 1.
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.

And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
Jason Felds 8bc0b9385c No longer auto casts to float. Do it manually. 2013-04-28 12:01:41 -04:00
Devin J. Pohly a280f513b4 fix ffmpeg 1.1 builds... another way 2013-02-21 03:18:28 -05:00
Jason Felds 591bbae070 Compiles and links. Try at your own risk. 2013-02-10 20:38:14 -05:00
Jason Felds eaad585fa8 Transplant revision b18dc32.
Original message is as follows:

[Xcode4.4] wrong code: NSBitsPerPixelFromDepth seems to like to return 0.
instead, use a reimplementation of CGGetDisplayBitsPerPixel
2013-02-10 20:31:40 -05:00
Jason Felds bf54a30dbb Definitely confirmed these files are gone.
Mac OS X still broken.
2013-02-10 11:32:43 -05:00
Devin J. Pohly 655af974a6 simplify window mapping loop 2012-12-31 21:27:16 -05:00
Devin J. Pohly d9f61d919c answer some commented questions 2012-12-31 19:31:38 -05:00
Jason Felds a15cbc431d War on -Werror, part 14: More hodgepodge. 2012-12-27 12:45:04 -05:00
Jason Felds e86aeb66a8 war on -Werror, part 10: more informals. 2012-12-27 11:01:51 -05:00
Devin J. Pohly 58aa480016 war on -Werror, part 3: narrowing conversions 2012-12-26 21:12:12 -05:00
Colby Klein 83f745f95c Add comments. 2012-12-09 02:45:19 -08:00
AJ Kelly 7c686aa160 small freem cleanup 2011-09-07 10:46:29 -05:00
AJ Kelly a5c62db884 [LowLevelWindow_X11] Don't force the window into the upper left corner. [ZipFile] 2011-08-13 18:53:29 -05:00
Jason Felds f686951513 [tiger] Universal binaries work.
Thanks to the #gcc channel in getting GCC 4.2 to work.
2011-05-30 10:40:00 -04:00
Thai Pangsakulyanont b1f990c0f1 move glew.c inside stepmania (now builds!) 2011-05-30 10:39:50 +07:00
Jason Felds c22bce6628 Stick with uint32_t. Doesn't cause errors. 2011-05-21 21:13:21 -04:00
Jason Felds 4e22702026 Try different variable name, only one <Filter>.
We'll get this figured out...
2011-05-03 22:09:15 -04:00
Jason Felds d19de4ed1e shakesoda's suggestions for more glew stuff.
Again, revert if a terrible idea.
2011-05-03 21:59:59 -04:00
AJ Kelly fb1dbd4463 merge 2011-05-02 20:11:26 -05:00
Colby Klein e9d6fada14 Fix compile, rename _Legacy to _OGL so I stop being confused 2011-05-02 11:23:37 -07:00
Colby Klein 0c457ba55b [opengl] merge (part 1?) 2011-03-16 23:27:50 -07:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 7c4044a2fc Force consistent line endings.
I'd suggest enabling the EolExtension:
this way we won't go back and forth here.
2011-03-16 15:51:54 -04:00
Colby Klein 30553fec04 Fix a few missed replacements, update strings. 2011-03-13 23:42:07 -07:00
Jason Felds 3cbf007352 Another batch of doxy. 2011-02-26 02:54:17 -05:00