36 Commits

Author SHA1 Message Date
quietly-turning 21eed3f235 add 21:9 and 9:16 to ConfAspectRatio in _fallback
This adds choices for 21:9 (Ultrawide) and 9:16 (widescreen display in
portrait mode) to the _fallback theme.  Previously, users would have to
manually edit Preferences.ini to achieve either of these.

Since "21:9" is the common marketing term for what is actually 64:27,
I've slightly extended GenChoices() in ConfAspectRatio() to use a "name"
string from the winFracs table is one is provided. If not, the original
behavior of generating user-facing choices from the raw values is
preserved.

See: https://wikipedia.org/wiki/21:9_aspect_ratio

I updated the global AspectRatios table in _fallback/02 Utilities.lua to
match.
2020-04-28 22:47:54 -04:00
Martin Natano 6a4551f958 Detect 8:3 as widescreen (#1929)
The IsUsingWideScreen() function only checked 16:10 and 16:9, now we just
check that the ratio is greater than 16:10. (Coincidentally that's also
what the documentation states about this function.)
2019-11-03 12:10:05 -08:00
Flameshadowxeroshin 52dbc11b5f Make getenv() and setenv() actually get and set the current env 2018-02-09 11:03:26 -06: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
Kyzentun dd9fa68fef Sprite:Load lua function can set additional texture hints by having a second argument. Also, rec_count_children slipped in Utilities somehow. (#1426) 2017-04-04 17:24:14 -07:00
Kyzentun 8aa2d42427 Added rec_print_children and rec_print_table to _fallback. Updated changelog. 2015-04-07 00:04:34 -06:00
Kyzentun 7443f76eab Polish installer translation from Jarosław Pietras. Removed duplicate IsRoutine function from Branches.lua. Fixed beat noteskin receptor to not set zero delay. Minor change to default's danger underlay to pass the pn when fetching style. 2015-01-28 08:52:52 -07:00
Kyzentun 896dd7977e Maybe editing the changelog should only be done after merging a pull, to avoid conflicts. 2015-01-10 12:32:07 -07:00
Kyzentun 2c6776c480 tobool should handle bools correctly. 2015-01-04 22:27:34 -07:00
Kyzentun 703b423dd4 Moved note column splines into tween state. Renamed size/dimension spline lua functions to get/set convention. Added make_camel_aliases to 01 alias.lua to make the CamelCase aliases required by shakesoda for consistency. 2015-01-04 06:10:21 -07:00
Kyzentun ca4eb65b61 Added lerp, lerp_color, approach, and multiapproach lua functions. 2014-10-23 00:13:13 -06:00
Jonathan Payne 04da3fb9c7 include IsCourse(), fix StageDisplay for courses!
(cherry picked from commit 56003157f77be78bd5ab9e608b1f3836cf288e08)
2014-08-28 06:01:17 -05:00
Kyzentun b882f3506a Adjusted text scaling that convert_text_to_indented_lines uses to make it adjust for resolution differences better. 2014-08-02 00:38:53 -07:00
Kyzentun 8657d70fe1 Created Def.LogDisplay for displaying messages in a log. Changed error reporting layer to use Def.LogDisplay. Changed engine error reporting to not clip errors to a single line. 2014-08-02 00:38:29 -07:00
Ben "root" Anderson 34e1bf4b55 Boolean operators do not work that way. 2013-12-27 19:57:37 -06:00
Jonathan Payne 7f9972ea74 Fix routine theme errors; do not force typical pump options behavior 2013-10-17 19:27:42 -07:00
Flameshadowxeroshin 495aa1ef14 some things. 2012-05-15 23:04:46 -05:00
AJ Kelly 31546cc0a5 simplify some things, reformat others. 2012-03-24 00:38:38 -05:00
AJ Kelly ca09f6dd67 more script cleanup 2012-03-24 00:16:21 -05:00
AJ Kelly 9a26e009a2 various fallback script cleanup 2012-03-24 00:13:25 -05:00
AJ Kelly 3ada7de660 displaytype isn't used actually 2012-01-04 12:08:45 -06:00
AJ Kelly ff5c7c3319 I guess some people used the (mostly worthless) code in WidescreenHelpers 2012-01-04 12:02:02 -06:00
AJ Kelly 907e3922d1 move widescreenhelpers stuff into utilities 2011-12-27 20:47:04 -06:00
AJ Kelly b1219d0cbc kill off productivity helpers, move its remaining functions into 02 Utilities 2011-12-27 20:40:48 -06:00
AJ Kelly 2c47134f39 split out some stuff from ProductivityHelpers into other files; trying to cut down on the number of Scripts we have 2011-12-15 20:34:07 -06:00
AJ Kelly e6d45be2bc move envutils2 into utilities.lua 2011-10-27 19:14:44 -05:00
AJ Kelly 28c1b3e70b update scripts as a part of a cleanup 2011-10-27 18:56:23 -05:00
AJ Kelly 51b949d637 small edit to table.find as mentioned in issue 556 2011-09-30 12:07:29 -05:00
AJ Kelly 150438dbee remove unfinished datetime; moved working functions to Utilities. small edits to customspeedmods 2011-09-26 14:33:41 -05:00
Colby Klein 57d5a3a0b3 oops 2011-08-18 13:41:29 -07:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jonathan Payne d404736c33 fixing stuff. 2011-02-27 16:47:20 -08:00
AJ Kelly e4fc513c7e table sum, average, and standard deviation functions from shakesoda. (I also try to attempt to alias table.slice to tableslice and table.shuffle to tableshuffle) 2010-08-05 23:23:47 -05:00
AJ Kelly a82ee268e0 add round() function from http://lua-users.org/wiki/FormattingNumbers 2010-07-11 00:28:39 -05:00
AJ Kelly 7b3f8b2090 Script cleanup, add aliases for SCREEN_* (_screen.w, etc, check alias.lua). [shakesoda] 2010-06-07 23:24:19 -05:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00