mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 14:29:49 +02:00
Update to 20160106 OS X Preview for Developers release.
byuu says: New update. Most of the work today went into eliminating hiro::Image from all objects in all ports, replacing with nall::image. That took an eternity. Changelog: - fixed crashing bug when loading games [thanks endrift!!] - toggling "show status bar" option adjusts window geometry (not supposed to recenter the window, though) - button sizes improved; icon-only button icons no longer being cut off
This commit is contained in:
@@ -10,8 +10,8 @@ auto mMenuItem::doActivate() const -> void {
|
||||
if(state.onActivate) return state.onActivate();
|
||||
}
|
||||
|
||||
auto mMenuItem::image() const -> Image {
|
||||
return state.image;
|
||||
auto mMenuItem::icon() const -> image {
|
||||
return state.icon;
|
||||
}
|
||||
|
||||
auto mMenuItem::onActivate(const function<void ()>& callback) -> type& {
|
||||
@@ -19,9 +19,9 @@ auto mMenuItem::onActivate(const function<void ()>& callback) -> type& {
|
||||
return *this;
|
||||
}
|
||||
|
||||
auto mMenuItem::setImage(const Image& image) -> type& {
|
||||
state.image = image;
|
||||
signal(setImage, image);
|
||||
auto mMenuItem::setIcon(const image& icon) -> type& {
|
||||
state.icon = icon;
|
||||
signal(setIcon, icon);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user