mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 14:42:33 +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
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#if defined(Hiro_VerticalScrollBar)
|
|
|
|
namespace hiro {
|
|
|
|
auto pVerticalScrollBar::construct() -> void {
|
|
qtWidget = qtVerticalScrollBar = new QtVerticalScrollBar(*this);
|
|
qtVerticalScrollBar->setRange(0, 100);
|
|
qtVerticalScrollBar->setPageStep(101 >> 3);
|
|
qtVerticalScrollBar->connect(qtVerticalScrollBar, SIGNAL(valueChanged(int)), SLOT(onChange()));
|
|
|
|
pWidget::construct();
|
|
_setState();
|
|
}
|
|
|
|
auto pVerticalScrollBar::destruct() -> void {
|
|
delete qtVerticalScrollBar;
|
|
qtWidget = qtVerticalScrollBar = nullptr;
|
|
}
|
|
|
|
auto pVerticalScrollBar::minimumSize() const -> Size {
|
|
return {15, 0};
|
|
}
|
|
|
|
auto pVerticalScrollBar::setLength(unsigned length) -> void {
|
|
_setState();
|
|
}
|
|
|
|
auto pVerticalScrollBar::setPosition(unsigned position) -> void {
|
|
_setState();
|
|
}
|
|
|
|
auto pVerticalScrollBar::_setState() -> void {
|
|
signed length = state().length + (state().length == 0);
|
|
qtVerticalScrollBar->setRange(0, length - 1);
|
|
qtVerticalScrollBar->setPageStep(length >> 3);
|
|
qtVerticalScrollBar->setValue(state().position);
|
|
}
|
|
|
|
auto QtVerticalScrollBar::onChange() -> void {
|
|
p.state().position = value();
|
|
p.self().doChange();
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|