From ae9ca6708b165e471dedb0d96b2fdebef21c4a1a Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sat, 28 Jan 2017 21:35:19 +0100 Subject: [PATCH] Fixed bug in HD panel Fixed browse button in HD selection showing black screen --- src/osdep/gui/EditFilesysHardfile.cpp | 10 ++++------ src/osdep/gui/EditFilesysVirtual.cpp | 6 ++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/osdep/gui/EditFilesysHardfile.cpp b/src/osdep/gui/EditFilesysHardfile.cpp index 28310094..371e420e 100644 --- a/src/osdep/gui/EditFilesysHardfile.cpp +++ b/src/osdep/gui/EditFilesysHardfile.cpp @@ -19,8 +19,8 @@ #include "gui_handling.h" #include "pandora_gfx.h" -#define DIALOG_WIDTH 620 -#define DIALOG_HEIGHT 242 +#define DIALOG_WIDTH 520 +#define DIALOG_HEIGHT 202 static const char *harddisk_filter[] = { ".hdf", "\0" }; @@ -314,13 +314,11 @@ static void EditFilesysHardfileLoop(void) // Now we let the Gui object draw itself. uae_gui->draw(); // Finally we update the screen. -// wait_for_vsync(); -// SDL_Flip(gui_screen); // Update the texture from the surface - SDL_UpdateTexture(texture, NULL, gui_screen->pixels, gui_screen->pitch); + SDL_UpdateTexture(gui_texture, NULL, gui_screen->pixels, gui_screen->pitch); // Copy the texture on the renderer - SDL_RenderCopy(renderer, texture, NULL, NULL); + SDL_RenderCopy(renderer, gui_texture, NULL, NULL); // Update the window surface (show the renderer) SDL_RenderPresent(renderer); } diff --git a/src/osdep/gui/EditFilesysVirtual.cpp b/src/osdep/gui/EditFilesysVirtual.cpp index aaa6e66d..3e2e5879 100644 --- a/src/osdep/gui/EditFilesysVirtual.cpp +++ b/src/osdep/gui/EditFilesysVirtual.cpp @@ -254,13 +254,11 @@ static void EditFilesysVirtualLoop(void) // Now we let the Gui object draw itself. uae_gui->draw(); // Finally we update the screen. -// wait_for_vsync(); -// SDL_Flip(gui_screen); // Update the texture from the surface - SDL_UpdateTexture(texture, NULL, gui_screen->pixels, gui_screen->pitch); + SDL_UpdateTexture(gui_texture, NULL, gui_screen->pixels, gui_screen->pitch); // Copy the texture on the renderer - SDL_RenderCopy(renderer, texture, NULL, NULL); + SDL_RenderCopy(renderer, gui_texture, NULL, NULL); // Update the window surface (show the renderer) SDL_RenderPresent(renderer); }