From 7e3c80e1d8d55e88e2805fd43d20b2c1fa45daa7 Mon Sep 17 00:00:00 2001 From: riccardom Date: Thu, 13 May 2010 11:52:56 +0000 Subject: [PATCH] gtk frontend: nds_screen.size_ratio is not needed anymore. --- desmume/src/gtk/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index 552e5b6ac..33ed8f430 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -567,7 +567,6 @@ GtkActionGroup * action_group; GtkUIManager *ui_manager; struct nds_screen_t { - float size_ratio; guint gap_size; gint rotation_angle; guint orientation; @@ -1129,7 +1128,6 @@ static gboolean ExposeDrawingArea (GtkWidget *widget, GdkEventExpose *event, gpo vratio = (float)(daH - gapH) / (float)imgH; hratio = MIN(hratio, vratio); vratio = hratio; - nds_screen.size_ratio = 1 / hratio; primaryOffsetX = (daW-(int)(hratio*(float)imgW)-gapW)/2; primaryOffsetY = (daH-(int)(vratio*(float)imgH)-gapH)/2; @@ -2090,7 +2088,6 @@ common_gtk_main( struct configured_features *my_config) memset(&nds_screen, 0, sizeof(nds_screen)); nds_screen.orientation = ORIENT_VERTICAL; - nds_screen.size_ratio = 1.0f; /* Create the window */ pWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);