mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-22 22:22:42 +01:00
byuu says: Changelog (since the last open beta): - icarus is now included. icarus is used to import game files/archives into game paks (folders) - SNES: mid-scanline BGMODE changes now emulated correctly (used only by atx2.smc Anthrox Demo) - GBA: fixed a CPU bug that was causing dozens of games to have distorted audio - GBA: fixed default FlashROM ID; should allow much higher compatibility - GBA: now using Cydrak's new, much improved, GBA color emulation filter (still a work-in-progress) - re-added command-line loading support for game paks (not for game files/archives, sorry!) - Qt port now compiles and runs again (may be a little buggy; Windows/GTK+ ports preferred) - SNES performance profile now compiles and runs again - much more
39 lines
836 B
C++
39 lines
836 B
C++
#if defined(Hiro_HorizontalScrollBar)
|
|
|
|
auto mHorizontalScrollBar::allocate() -> pObject* {
|
|
return new pHorizontalScrollBar(*this);
|
|
}
|
|
|
|
//
|
|
|
|
auto mHorizontalScrollBar::doChange() const -> void {
|
|
if(state.onChange) return state.onChange();
|
|
}
|
|
|
|
auto mHorizontalScrollBar::length() const -> unsigned {
|
|
return state.length;
|
|
}
|
|
|
|
auto mHorizontalScrollBar::onChange(const function<void ()>& callback) -> type& {
|
|
state.onChange = callback;
|
|
return *this;
|
|
}
|
|
|
|
auto mHorizontalScrollBar::position() const -> unsigned {
|
|
return state.position;
|
|
}
|
|
|
|
auto mHorizontalScrollBar::setLength(unsigned length) -> type& {
|
|
state.length = length;
|
|
signal(setLength, length);
|
|
return *this;
|
|
}
|
|
|
|
auto mHorizontalScrollBar::setPosition(unsigned position) -> type& {
|
|
state.position = position;
|
|
signal(setPosition, position);
|
|
return *this;
|
|
}
|
|
|
|
#endif
|