mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 15:10:24 +02:00
v109.4
Rename hiro::Property to hiro::Attribute Disable XChaCha20 CSPRNG on Android for now due to compilation issues Add macOS IOKit joypad support [Sintendo]
This commit is contained in:
@@ -44,7 +44,13 @@ auto pComboButton::reset() -> void {
|
||||
SendMessage(hwnd, CB_RESETCONTENT, 0, 0);
|
||||
}
|
||||
|
||||
//Windows overrides the height parameter for a ComboButton's SetWindowPos to be the drop-down list height.
|
||||
//the canonical way to set the actual height is through CB_SETITEMHEIGHT. However, doing so is bugged.
|
||||
//the ComboButton will end up not being painted for ~500ms after calling ShowWindow(hwnd, SW_NORMAL) on it.
|
||||
//thus, implementing windows that use multiple pages of controls via toggling visibility will flicker heavily.
|
||||
//as a result, the best we can do is center the actual widget within the requested space.
|
||||
auto pComboButton::setGeometry(Geometry geometry) -> void {
|
||||
//since the ComboButton has a fixed height, it will always be the same, even before calling setGeometry() once.
|
||||
RECT rc;
|
||||
GetWindowRect(hwnd, &rc);
|
||||
geometry.setY(geometry.y() + (geometry.height() - (rc.bottom - rc.top)));
|
||||
|
Reference in New Issue
Block a user