mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-11 23:44:27 +02:00
Update to v094r27 release.
byuu says: Added AWJ's fixes for alt/cpu (Tetris Attack framelines issue) and alt/dsp (Thread::clock reset) Added fix so that the taskbar entry appears when the application first starts on Windows. Fixed checkbox toggling inside of list views on Windows. Updated nall/image to properly protect variables that should not be written externally. New Object syntax for hiro is in. Fixed the backwards-typing on Windows with the state manager. NOTE: the list view isn't redrawing when you change the description text. It does so on the cheat editor because of the resizeColumns call; but that shouldn't be necessary. I'll try and fix this for the next WIP.
This commit is contained in:
@@ -369,9 +369,9 @@ auto pWindow::_setIcon(const string& pathname) -> bool {
|
||||
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
|
||||
nall::image icon(filename);
|
||||
icon.scale(min(256u, icon.width), min(256u, icon.height), true);
|
||||
GdkPixbuf* pixbuf = CreatePixbuf(icon);
|
||||
image icon(filename);
|
||||
icon.scale(min(256u, icon.width()), min(256u, icon.height()), true);
|
||||
auto pixbuf = CreatePixbuf(icon);
|
||||
gtk_window_set_icon(GTK_WINDOW(widget), pixbuf);
|
||||
g_object_unref(G_OBJECT(pixbuf));
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user