Commit Graph

43 Commits

Author SHA1 Message Date
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 Phlipot 4a6b1a743c Enable more compiler warnings and treat them as errors. 2023-02-02 11:54:17 -08:00
Michael Sundqvist 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Martin Natano c5096d24de Update vertex count stats when drawing smooth lines (OGL) (#1932)
The statistics are updated in the generic codepath, which is not used by
RageDisplay_Legacy::DrawLineStripInternal() when rendering smooth lines.

Note, that the output vertex count can differ a lot between smooth lines
(2) and non-smooth lines (~38 output vertices per input vertex), so
updating the statistics can not be done in RageDisplay::DrawLineStrip()
like it is donw for the other draw functions.
2019-11-14 12:40:35 -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
Flameshadowxeroshin c1088c1abc Distance field EffectMode (#1546)
* Distance field EffectMode (supports MSDF and the regular sort)
2017-10-02 05:54:05 -07:00
Drew Barbarello 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 edabf4605b Clean up three sets of warnings:
* Ensure all switches have a default when working with enums.
* Match defined new[] calls with delete[] calls.
* Respect variable initialization order.
2016-03-24 18:30:29 -04:00
sigatrev 45a0952a3b Prevent crash when AFT draws an AFT
by remember the previous render target.
2015-03-17 21:41:31 -05:00
sigatrev cc5c05a4f1 Fix AFT DepthBuffer 2015-03-17 21:37:26 -05:00
Ben "root" Anderson 76d9ba6bf1 glFinish() to force the tightest input-to-screen coupling possible 2015-03-15 19:06:52 -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 c67419ecc8 There goes the macro file.
This is one of my bigger commits in this branch.

Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds 9d19421b7a Another simple one. 2013-05-01 23:01:55 -04:00
Jason Felds 066b4d08b8 Use the foreach construct.
Hmm...another opportunity for smart pointers?
2013-04-28 16:30:06 -04:00
Jason Felds 7e5bc7aa89 All set loops handled. 2013-04-27 14:02:11 -04:00
Devin J. Pohly a280f513b4 fix ffmpeg 1.1 builds... another way 2013-02-21 03:18:28 -05:00
Devin J. Pohly bd0e2074ad replace ASSERT(0) with useful fail messages 2012-12-27 16:59:35 -05:00
Jason Felds a15cbc431d War on -Werror, part 14: More hodgepodge. 2012-12-27 12:45:04 -05:00
Colby Klein de371d136f Attempt to fix OpenGL shader compilation crash when drivers seem to have only partial shader support. Please test. If this still doesn't work, all shader support may simply be forced to require GL 2.0. 2012-11-13 15:01:32 -08:00
Devin J. Pohly aa3244a0f2 fix typo in blend functions 2012-07-31 23:26:50 -04:00
Aldo Fregoso 341a474c9a Fixed errors & warnings to compile with VS 2011 2012-05-20 21:00:14 -05:00
Alberto Ramos 032863c8f0 I hope this fixes opengl forever 2011-12-29 16:47:03 -07:00
Alberto Ramos 031249ab76 why 2011-12-29 16:15:21 -07:00
Alberto Ramos b32c85b30f other test 2011-12-29 16:13:40 -07:00
Alberto Ramos 0cbe9b92c3 something 2011-12-29 16:06:15 -07:00
AJ Kelly f9514958bf put wglew behind #if defined(WINDOWS) 2011-05-04 00:33:32 -05:00
AJ Kelly 2251baf10c simplify like fuc 2011-05-04 00:31:42 -05:00
AJ Kelly 0b32783697 this seems to fix the compile on Windows; not sure if it's the best way of doing it, though. 2011-05-04 00:26:12 -05: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
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Colby Klein 704c7bff1d Update Cel shading. Note, RageDisplay_D3D will need to be fixed for this. 2011-03-08 11:00:32 -08:00
AJ Kelly 6b3da26a4c [GameCommand] Don't allow battle/rave with Routine (StyleType_TwoPlayersSharedSides). also cleanup
[RageTypes] remove glowmode stub stuff
[RageDisplayOGL] update comments slightly
2010-06-02 15:43:56 -05:00
AJ Kelly 2d872ac518 427a764: subtractive blend (OpenGL only for now) [Glenn Maynard]
I was looking into writing the equivalent Direct3D code; still not 100% sure if my code is right, so it stays local for now.
2010-02-08 01:32:14 -06:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00