Commit Graph

48 Commits

Author SHA1 Message Date
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
MrThatKid 02d863397a Don't use static temp state for actor effects
because actors are nested
2016-11-29 18:00:39 -08:00
Kyzentun Keeslala a4ecf15ce3 Added flag for making an actor use the effect delta for tweening. Updated changelog. 2016-03-17 19:37:27 -06:00
Kyzentun 5eba25a495 Added hold at full to actor effect timing. Added the xml to lua converter. 2015-05-01 07:50:34 -06:00
Kyzentun 2656123464 RageTextureManager now keeps a map of textures by pointer for quicker lookup when deleting.
RageTextureManager now keeps a map of textures that need updating, which is none of them because I couldn't find a class that inherits from RageTexture that doesn't have an empty Update function.
ArrowEffects now requires setting the current PlayerOptions before calling any functions.  This might make moving to per-column mods easier, and reduces the direct usage of PlayerState.
Tipsy calculations for each column are done in ArrowEffects::Update instead of GetYPos and GetYOffset.
DrawHold changed to only call DrawHoldBody once.  DrawHoldBody now does the normal and glow passes together instead of needing to be called twice.
DrawHoldPart changed to take most of its args in a struct.
Giant copy paste mess that NoteField was using to draw timing segment text replaced with a couple functions and a macro.
Selection glow for notefield is only calculated if a section is selected.
Added RageVector3 functions to CubicSplineN for NoteDisplay to use.
Actor effect period is cached now.  Sprites and Models cache their animation length now.
ReceptorArrowRow no longer calls ArrowEffects::Update in gameplay.
2015-04-24 15:55:54 -06:00
Kyzentun ad877b6dcb Changed BackgroundEffects files to apply the playback rate to videos. Added GetUpdateRate to ActorFrame and Get/SetDecodeMovie to Sprite. Hope nobody is caught off guard by checkerboard no longer playing videos back at 4x rate. 2015-02-05 00:37:08 -07:00
Kyzentun 647b361284 Added wrapper states to actors. Wrapping an actor inside a frame when building a screen is now unnecessary. 2015-01-30 09:05:09 -07:00
Kyzentun 40b25e6220 Fixed conflicts to merge kickbox in. 2015-01-27 18:03:41 -07:00
Kyzentun aeaead95c9 Changed default ScreenSelecStyle to use functions for choice names and positions instead of metrics. _fallback SSS remains the same for compatibility. Fixed style stomping bug in SetCompatibleStylesForPlayers. 2015-01-20 18:40:59 -07:00
Kyzentun 64d384410c Created NoteColumnRenderer to handle column rendering. Added m_FakeParent to Actor to solve part of the problem. 2014-12-26 01:54:34 -07:00
Kyzentun 2834cded9e Created tween queue and functions for BitmapText so the stroke color can be tweened. 2014-11-01 18:49:48 -06:00
Kyzentun 50df61a0ca Fixed RollingNumbers to work with corner diffuse colors. Changed diffuse loops to use NUM_DIFFUSE_COLORS instead of 4. 2014-11-01 16:42:51 -06:00
sigatrev d8b86fa3c5 make internal diffuse apply to bmt attributes
diffuse from BitmapText attributes were not receiving internal diffuse
from their parent ActorFrames. This change waits until after the draw
cycle to reset the internal diffuse and glow, so any color applications
separate from generic diffuse can use the internal diffuse when desired.
2014-08-16 16:38:26 -05:00
sigatrev 70c5209e76 added ActorMultiVertex
AMV is an actor which can have a variable number of vertices that can
each be given their own pos, color, and coords. They can be drawn using
any of the RageSpriteVertex draw functions in RageDisplay.cpp. The
vertex properties can be tweened.
2014-04-14 21:29:19 -05:00
sigatrev 0ab15ed053 TextureTranslate method
Allow themes to duplicate the way noteskins are handled.
2014-02-20 21:17:10 -06:00
Ben "root" Anderson ddbdb77368 Split Actor::BeginDraw() into Actor::PreDraw() which does tweening calculations and Actor::BeginDraw() now only sets up the matrix. Skip setting up the matrix if the Actor is fully transparent. 2013-12-13 12:10:11 -06:00
Devin J. Pohly ecdc352e96 Actor: propagate some default parameters 2013-10-20 16:34:19 -04:00
Devin J. Pohly f94d3affc2 Propagate diffuse to ActorFrames' children 2013-05-28 21:46:15 -04:00
Devin J. Pohly 849b6e5b3b Propagate glow to ActorFrames' children 2013-05-28 20:52:01 -04:00
Jason Felds e01537405f war on -Werror, part 8: more informals.
General guide: if the parameter name and its typings
match almost exactly, the name goes away.
Otherwise, it's commented out to allow for some
documentation.
2012-12-27 00:00:28 -05:00
AJ Kelly e14b96cfbf part one of three-ish in reverting the Actors/ folder thing 2011-10-02 21:14:01 -05:00
Colby Klein 69431604e3 Remove the old files. (also I am very sorry for nuking the line by line history, this has been pissing me off for ages) 2011-09-23 15:44:01 -07:00
Thai Pangsakulyanont 631bc3753d Revert "An attempt to make the arrows flash with the steps' timing. If it works then we can expand it to..... I don't know, lifebars?"
This reverts commit ab178b1e65.
2011-05-24 10:41:07 +07:00
Thai Pangsakulyanont ab178b1e65 An attempt to make the arrows flash with the steps' timing. If it works then we can expand it to..... I don't know, lifebars? 2011-05-20 21:33:42 +07:00
Jason Felds d99e7b5c5b [splittiming] Re-establish Actor code. 2011-05-15 00:57:35 -04:00
Jason Felds a32a03b2e9 [splittiming] Trying to restore #COMBOS. 2011-05-14 20:05:27 -04:00
Flameshadowxeroshin 3ac85df29f [splittiming] some. times in our lives. we all have pains. we all have sorrow 2011-05-14 17:12:27 -05:00
Flameshadowxeroshin 6b0a939290 [splittiming] new EffectModes (not available from Lua yet), clarified error message 2011-05-14 17:03:49 -05:00
Jason Felds 9f86bd47f7 [sm130futures] doxygen 2011-04-09 17:09:30 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 6a3bf42bca More doxygen. Add const where appropriate. 2011-02-26 02:14:35 -05:00
AJ Kelly 32e6e65d35 more small comment updates for futures 2011-02-25 16:28:19 -06:00
AJ Kelly 9d38caa32f more ssc futures preparations 2011-02-25 15:49:36 -06:00
AJ Kelly bbb5ae1f16 I keep messing around with it 2011-02-24 00:50:31 -06:00
AJ Kelly 8deb69ec57 update the future EffectAction and EffectType enums 2011-02-24 00:22:42 -06:00
AJ Kelly 8c3eda6315 yup, I continue to work on this new effect system for Actors. one day it might even get finished! 2011-02-24 00:14:53 -06:00
AJ Kelly ac8aa2a7dd more of that new Effect stack planning 2011-02-23 23:53:49 -06:00
AJ Kelly faafb61ecc preparing for the future again 2011-02-23 14:32:13 -06:00
Jason Felds e9449cb50e More doxy, more recompiling all. 2011-02-19 17:00:32 -05:00
AJ Kelly 79cbd57da1 one mall doxygen plus more testing 2011-02-18 14:49:30 -06:00
AJ Kelly 293eebe876 tiny commit for testing 2011-02-18 14:44:38 -06:00
Jason Felds 6d1dd6997b More sporadic doxygen documenting.
Really need a themer for Actor stuff.
2011-02-18 15:10:11 -05:00
AJ Kelly beeaf80b99 [Actor] add basezoom, basezoomz, GetBaseZoomY(), GetBaseZoomZ(), GetGlow() Lua bindings 2010-06-10 14:25:53 -05:00
AJ Kelly 237f3c51c7 [Actor] add new Lua bindings/commands: addrotationx, addrotationy, addrotationz 2010-06-02 15:02:59 -05:00
AJ Kelly 5903c2448a Add GetHAlign and GetVAlign Lua bindings to Actor. 2010-05-18 18:01:51 -05:00
AJ Kelly dca9182138 various cleanup and commenting 2010-03-14 19:46:05 -05: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