mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-04 22:32:02 +02:00
Update to v070r10 release.
byuu says: - added workaround to phoenix/Windows to prevent horizontal scrollbar always being visible on single-column ListBoxes - phoenix gains Window::geometry() - added code to save and restore window positions, as in bsnes/Qt. Positions are saved to bsnes-phoenix-geometry.cfg this time - resizing the main window will keep its position onscreen now There's one issue with GTK+, if you close a window and then call gtk_window_get_position(), it returns the previously set position rather than where you actually placed the window. My easy fix of calling gtk_window_get_position right before actually closing the window didn't work, so for now you'll have to live with it.
This commit is contained in:
@@ -23,6 +23,10 @@ void Window::create(unsigned x, unsigned y, unsigned width, unsigned height, con
|
||||
window->layout->addWidget(window->statusBar);
|
||||
}
|
||||
|
||||
Geometry Window::geometry() {
|
||||
return Geometry(window->x(), window->y(), window->container->width(), window->container->height());
|
||||
}
|
||||
|
||||
void Window::setGeometry(unsigned x, unsigned y, unsigned width, unsigned height) {
|
||||
window->container->setFixedSize(width, height);
|
||||
window->move(x, y);
|
||||
|
Reference in New Issue
Block a user