11 Commits

Author SHA1 Message Date
David Griswold
43c4d3981d Added "Small Screen Position" feature
* error checking for layout value from older config

* rename enum and update aspect ratio code

* rewrite LargeFrameLayout to support multiple positions

* add settings for smallscreenposition, fix minsize function

* fixed framebuffer from res scale (screenshots)

* add desktop UI for small screen position

* small screen position submenu on desktop

* fix int-float conversion warning

* rename Above and Below to hopefully fix linux issue

* Add Small Screen Position Setting to android settings menu

* fix sliders to work with floats, mostly

* fix android slider textinput ui

* change None enums in settings and cam_params

* Apply clang-format-18

* SettingsAdapter.kt: Make more null pointer exception resistant

* Updated license headers

* Code formatting nitpicks

* fix bug in main.ui that was hiding menu

* replace default layout with a special call to LargeFrame (like SideBySide does)

* fix bug when "large screen" is actually narrower

* edit documentation for LargeScreenLayout

* update PortraitTopFullFrameLayout to use LargeFrameLayout

* fix unary minus on unsigned int bug

* Applied formatting correction

* Added `const`s where appropriate

* android: Add mention of the bottom-right small screen position being the default

* review fixes + more constants

* refactor all Upright calculations to a reverseLayout method, simplifying code and reducing bugs

* Removed stray extra newline

* SettingsAdapter.kt: Fixed some strange indentation

* Removed unnecessary `if` in favour of direct value usage

---------

Co-authored-by: Reg Tiangha <rtiangha@users.noreply.github.com>
Co-authored-by: OpenSauce04 <opensauce04@gmail.com>
2024-11-10 20:41:28 +00:00
OpenSauce04
6808d35845 configure_layout.ui: Fix duplicated element names 2024-11-10 18:16:49 +00:00
OpenSauce04
5bb5749912 Made Single Screen Layout config require relevant layout to be selected 2024-11-10 18:16:49 +00:00
OpenSauce04
539fff882b Added Single Screen layout configuration options
These settings also affect the Separate Windows layout

This commit also restructures the Layout tab of the configuration menu
2024-11-10 18:16:49 +00:00
OpenSauce04
8debabaeb3 Removed stray text from poor conflict resolution 2024-11-10 18:16:49 +00:00
OpenSauce04
779a0f4af2 Updated custom layout value names to be more accurate 2024-11-10 18:16:49 +00:00
OpenSauce04
90c64a4e0a Custom Layout options now uses X, Y, Width Height
Previously used Left, Top, Right, Bottom positions
2024-11-10 18:16:49 +00:00
Reg Tiangha
b62d910fbf citra_qt: Fix Hybrid Screen layout menu option 2024-11-10 18:16:49 +00:00
Reg Tiangha
c2da4c16df citra_qt: Tidy up Layout tab 2024-11-10 18:16:49 +00:00
Reg Tiangha
2f96e77e23 citra_qt: Remove scroll bar from Layout and Enhancements tabs 2024-11-10 18:16:49 +00:00
Reg Tiangha
f7fbece278 citra_qt: Move Layout section to its own tab called Layout 2024-11-10 18:16:49 +00:00