mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-22 04:12:59 +02:00
Update to v106r46 release.
byuu says: Changelog: - bsnes, higan: simplified make output; reordered rules - hiro: added Window::set(Minimum,Maximum)Size() [only implemented in GTK+ so far] - bsnes: only allow the window to be shrunk to the 1x multiplier size - bsnes: refactored Integral Scaling checkbox to {Center, Scale, Stretch} radio selection - nall: call fflush() after nall::print() to stdout or stderr [needed for msys2/bash] - bsnes, higan: program/interface.cpp renamed to program/platform.cpp - bsnes: trim ".shader/" from names in Settings→Shader menu - bsnes: Settings→Shader menu updated on video driver changes - bsnes: remove missing games from recent files list each time it is updated - bsnes: video multiplier menu generated dynamically based on largest monitor size at program startup - bsnes: added shrink window and center window function to video multiplier menu - bsnes: de-minimize presentation window when exiting fullscreen mode or changing video multiplier - bsnes: center the load game dialog against the presentation window (important for multi-monitor setups) - bsnes: screenshots are not immediate instead of delayed one frame - bsnes: added frame advance menu option and hotkey - bsnes: added enable cheats checkbox and hotkey; can be used to quickly enable/disable all active cheats Errata: - hiro/Windows: `SW_MINIMIZED`, `SW_MAXIMIZED `=> `SW_MINIMIZE`, `SW_MAXIMIZE` - hiro/Windows: add pMonitor::workspace() - hiro/Windows: add setMaximized(), setMinimized() in pWindow::construct() - bsnes: call setCentered() after setMaximized(false)
This commit is contained in:
@@ -446,9 +446,10 @@ struct Monitor {
|
||||
Monitor() = delete;
|
||||
|
||||
static auto count() -> uint;
|
||||
static auto dpi(uint monitor) -> Position;
|
||||
static auto geometry(uint monitor) -> Geometry;
|
||||
static auto dpi(maybe<uint> monitor = nothing) -> Position;
|
||||
static auto geometry(maybe<uint> monitor = nothing) -> Geometry;
|
||||
static auto primary() -> uint;
|
||||
static auto workspace(maybe<uint> monitor = nothing) -> Geometry;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -695,7 +696,11 @@ struct mWindow : mObject {
|
||||
auto fullScreen() const -> bool;
|
||||
auto geometry() const -> Geometry;
|
||||
auto layout() const -> Layout;
|
||||
auto maximized() const -> bool;
|
||||
auto maximumSize() const -> Size;
|
||||
auto menuBar() const -> MenuBar;
|
||||
auto minimized() const -> bool;
|
||||
auto minimumSize() const -> Size;
|
||||
auto modal() const -> bool;
|
||||
auto onClose(const function<void ()>& callback = {}) -> type&;
|
||||
auto onDrop(const function<void (string_vector)>& callback = {}) -> type&;
|
||||
@@ -718,6 +723,10 @@ struct mWindow : mObject {
|
||||
auto setFrameSize(Size size) -> type&;
|
||||
auto setFullScreen(bool fullScreen = true) -> type&;
|
||||
auto setGeometry(Geometry geometry) -> type&;
|
||||
auto setMaximized(bool maximized = true) -> type&;
|
||||
auto setMaximumSize(Size size = {}) -> type&;
|
||||
auto setMinimized(bool minimized = true) -> type&;
|
||||
auto setMinimumSize(Size size = {}) -> type&;
|
||||
auto setModal(bool modal = true) -> type&;
|
||||
auto setPosition(Position position) -> type&;
|
||||
auto setResizable(bool resizable = true) -> type&;
|
||||
@@ -734,6 +743,10 @@ struct mWindow : mObject {
|
||||
bool fullScreen = false;
|
||||
Geometry geometry = {128, 128, 256, 256};
|
||||
sLayout layout;
|
||||
bool maximized = false;
|
||||
Size maximumSize;
|
||||
bool minimized = false;
|
||||
Size minimumSize;
|
||||
sMenuBar menuBar;
|
||||
bool modal = false;
|
||||
function<void ()> onClose;
|
||||
|
Reference in New Issue
Block a user