The problem I was encountering was related to the /etc/fb.modes file. On re-reading the README file from the source tarball, it does mention that the FB mode defaults to the first entry in the /etc/fb.modes file. Since the first entry in my file was for 640x480, that is what I got - regardless of what I asked for. Moving one of the 1024x768 mode sections to the top of the fb.modes file fixed the problem. My app is now going full screen as I expect it to now!
Thanks to all who helped! Ron Gage Westland, MI ----- Original Message ----- From: "Ron Gage" <[EMAIL PROTECTED]> To: [email protected] Sent: Sunday, December 9, 2007 12:46:50 PM (GMT-0500) America/New_York Subject: [directfb-dev] Screen size problems Greetings: I am running into a bit of an oddity with DirectFB and GTK+. DirectFB-1.1.0 atk-1.2.0 cairo 1.4.12 fontconfig-2.5.0 glib-2.14.4 gtk+-2.12.3 pango 1.19.1 Linux 2.6.21.5 Vesa VGA mode 773 (1024x768x256) What is happening is that the DFB-GTK+ apps are being limited to 640x480, even though the screen itself is at 1024x768. Running a DFB app by itself (the font rendering example from the tutorial) runs at full 1024x768 without issues. GTK+ code that I am trying to run... GtkWidget *window; GtkWidget *button; GdkColor black; GdkScreen *screen; int screen_x, screen_y; char string[128]; gtk_init (&argc, &argv); gdk_color_parse("Black",&black); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_maximize(GTK_WINDOW(window)); gtk_window_fullscreen(GTK_WINDOW(window)); g_signal_connect (G_OBJECT(window), "delete_event", G_CALLBACK(delete_event), N g_signal_connect (G_OBJECT(window), "destroy",G_CALLBACK(destroy), NULL); gtk_container_set_border_width (GTK_CONTAINER(window),10); screen = gtk_window_get_screen(GTK_WINDOW(window)); screen_x = gdk_screen_get_width(screen); screen_y = gdk_screen_get_height(screen); gtk_widget_set_usize(GTK_WIDGET(window), screen_x, screen_y); gtk_widget_modify_bg(GTK_WIDGET(window), GTK_STATE_NORMAL, &black); screen_x is coming back at 640, screen_y is coming back at 480. I would expect screen_x to come back at 1024 and screen_y at 768. What on earth am I doing wrong here? Ron Gage Westland, MI _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
