MCPcopy Create free account
hub / github.com/TASEmulators/fceux / resizeGtkWindow

Function resizeGtkWindow

src/drivers/sdl/gui.cpp:995–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993}
994
995void resizeGtkWindow (void)
996{
997 //if(GameInfo == 0)
998 //{
999 double xscale, yscale;
1000 g_config->getOption ("SDL.XScale", &xscale);
1001 g_config->getOption ("SDL.YScale", &yscale);
1002 gtk_widget_set_size_request (evbox, NES_WIDTH * xscale,
1003 NES_HEIGHT * yscale);
1004 GtkRequisition req;
1005 gtk_widget_get_preferred_size (GTK_WIDGET (MainWindow), NULL, &req);
1006 //printf("GTK Resizing: w:%i h:%i \n", req.width, req.height );
1007 gtk_window_resize (GTK_WINDOW (MainWindow), req.width, req.height);
1008 gtk_widget_set_size_request (evbox, NES_WIDTH, NES_HEIGHT);
1009 //}
1010 return;
1011}
1012
1013static void setVideoDriver (GtkWidget * w, gpointer p)
1014{

Callers 5

setXscaleFunction · 0.85
setYscaleFunction · 0.85
hardResetFunction · 0.85
loadGameFunction · 0.85
openCheatFileFunction · 0.85

Calls 1

getOptionMethod · 0.80

Tested by

no test coverage detected