mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 07:02:27 +01:00
byuu says: Changelog: - GBA emulation accuracy has been substantially improved [Cydrak] - GBA ldm bug fixed [jchadwick] - SNES SuperFX timing has been improved [AWJ, ARM9, qwertymodo] - SNES accuracy profile is now ~8% faster than before - you no longer need to copy the .sys profile folders to ~/Emulation/System - you still need to put bios.rom (GBA BIOS) into Game Boy Advance.sys to use GBA emulation!! - you no longer need to pre-configure inputs before first use - loading games / changing window size won't recenter window - checkboxes in cheat editor update correctly - can't type into state manager description textbox on an empty slot - typing in state manager description box works correctly; and updates list view correctly - won't show files that match game extensions anymore (only game folders show up) - libco Win64 port fixes with FPU^H^H^H XMM registers - libco ARM port now available; so you too can play at 15fps on an RPi2! [jessedog3, Cydrak] - controller selection will check the default item in the menu now on game load - as usual, a whole lot of other stuff I'm forgetting Known issues: - type-ahead find does not work in list views (eg game selection dialog); I don't know how to fix this - there's no game file importer yet - there's no shader support yet - there's no profiler available for the timing panel, you need to adjust values manually for now
56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
#if defined(Hiro_ListView)
|
|
|
|
namespace hiro {
|
|
|
|
auto pListViewCell::construct() -> void {
|
|
}
|
|
|
|
auto pListViewCell::destruct() -> void {
|
|
}
|
|
|
|
auto pListViewCell::setBackgroundColor(Color color) -> void {
|
|
}
|
|
|
|
auto pListViewCell::setForegroundColor(Color color) -> void {
|
|
}
|
|
|
|
auto pListViewCell::setIcon(const image& icon) -> void {
|
|
}
|
|
|
|
auto pListViewCell::setText(const string& text) -> void {
|
|
if(auto parent = _parent()) {
|
|
if(auto listView = parent->_parent()) {
|
|
//ListView uses a custom drawing routine; so we need to tell the control to repaint itself manually
|
|
PostMessageOnce(listView->_parentHandle(), AppMessage::ListView_doPaint, 0, (LPARAM)&listView->reference);
|
|
}
|
|
}
|
|
}
|
|
|
|
auto pListViewCell::_parent() -> maybe<pListViewItem&> {
|
|
if(auto parent = self().parentListViewItem()) {
|
|
if(auto self = parent->self()) return *self;
|
|
}
|
|
return nothing;
|
|
}
|
|
|
|
auto pListViewCell::_setState() -> void {
|
|
if(auto item = _parent()) {
|
|
if(auto parent = item->_parent()) {
|
|
parent->lock();
|
|
wchar_t text[] = L"";
|
|
LVITEM lvItem;
|
|
lvItem.mask = LVIF_TEXT | LVIF_IMAGE;
|
|
lvItem.iItem = item->self().offset();
|
|
lvItem.iSubItem = self().offset();
|
|
lvItem.iImage = parent->self().columns();
|
|
lvItem.pszText = text;
|
|
ListView_SetItem(parent->hwnd, &lvItem);
|
|
parent->unlock();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|