mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-13 04:34:06 +02:00
Update to v106r55 release.
byuu says: Everything *should* be working again, but of course that won't actually be the case. Here's where things stand: - bsnes, higan, icarus, and genius compile and run fine on FreeBSD with GTK - ruby video and audio drivers are untested on Windows, macOS, and Linux - hiro is untested on macOS - bsnes' status bar is not showing up properly with hiro/qt - bsnes and higan's about screen is not showing up properly with hiro/qt (1x1 window size) - bsnes on Windows crashes often when saving states, and I'm not sure why ... it happens inside Encode::RLE - bsnes on Windows crashes with ruby.input.windows (unsure why) - bsnes on Windows fails to show the verified emblem on the status bar properly - hiro on Windows flickers when changing tabs To build the Windows bsnes and higan ports, use ruby="video.gdi audio.directsound" Compilation error logs for Linux will help me fix the inevitable list of typos there. I can fix the typos on other platforms, I just haven't gotten to it yet.
This commit is contained in:
@@ -138,7 +138,7 @@ auto pWindow::construct() -> void {
|
||||
gtk_window_set_resizable(GTK_WINDOW(widget), true);
|
||||
|
||||
//if program was given a name, try and set the window taskbar icon from one of the pixmaps folders
|
||||
if(!Application::state.name);
|
||||
if(!Application::state().name);
|
||||
else if(_setIcon({Path::user(), ".local/share/icons/"}));
|
||||
else if(_setIcon("/usr/local/share/pixmaps/"));
|
||||
else if(_setIcon("/usr/share/pixmaps/"));
|
||||
@@ -379,8 +379,8 @@ auto pWindow::setMinimumSize(Size size) -> void {
|
||||
auto pWindow::setModal(bool modal) -> void {
|
||||
if(modal) {
|
||||
gtk_window_set_modal(GTK_WINDOW(widget), true);
|
||||
while(!Application::state.quit && state().modal) {
|
||||
if(Application::state.onMain) {
|
||||
while(!Application::state().quit && state().modal) {
|
||||
if(Application::state().onMain) {
|
||||
Application::doMain();
|
||||
} else {
|
||||
usleep(20 * 1000);
|
||||
@@ -454,13 +454,13 @@ auto pWindow::_menuTextHeight() const -> int {
|
||||
auto pWindow::_setIcon(const string& pathname) -> bool {
|
||||
string filename;
|
||||
|
||||
filename = {pathname, Application::state.name, ".svg"};
|
||||
filename = {pathname, Application::state().name, ".svg"};
|
||||
if(file::exists(filename)) {
|
||||
gtk_window_set_icon_from_file(GTK_WINDOW(widget), filename, nullptr);
|
||||
return true;
|
||||
}
|
||||
|
||||
filename = {pathname, Application::state.name, ".png"};
|
||||
filename = {pathname, Application::state().name, ".png"};
|
||||
if(file::exists(filename)) {
|
||||
//maximum image size GTK+ supports is 256x256; scale image down if necessary to prevent error
|
||||
image icon(filename);
|
||||
|
Reference in New Issue
Block a user