Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1817 in orxonox.OLD for orxonox/branches/bensch/orxonox_gui_video.c


Ignore:
Timestamp:
Apr 14, 2004, 12:25:51 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/bensch: added default settings and video-init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bensch/orxonox_gui_video.c

    r1816 r1817  
    1 #include "orxonox_gui.h"
     1#include "orxonox_gui_video.h"
    22
    3 GtkWidget *orxonox_gui_video_frame (void)
     3
     4
     5
     6
     7/* Drawing The VIDEO_FRAME */
     8GtkWidget *orxonox_gui_video_frame (struct settings *orxonox_settings)
    49{
    510  GtkWidget *frame;
    6   GtkWidget *button;
    7 
     11  GtkWidget *fullscreen_button;
     12  GtkWidget *wireframe_button;
     13 
    814  frame = gtk_frame_new ( "Video-Options:");
    915  {
     
    1117    orxonox_gui_video_vbox = gtk_vbox_new (FALSE, 0);
    1218    {
    13         button = gtk_check_button_new_with_label ("Fullscreen-mode");
     19        fullscreen_button = gtk_check_button_new_with_label ("Fullscreen-mode");
     20        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fullscreen_button), orxonox_settings->video_fullscreen);
     21
    1422        /*      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_video_fullscreen);
    1523         */
    16         gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), button, TRUE, TRUE, 0);
     24        gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), fullscreen_button, TRUE, TRUE, 0);
    1725
    18         button = gtk_check_button_new_with_label ("Wireframe-mode");
     26        wireframe_button = gtk_check_button_new_with_label ("Wireframe-mode");
     27        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wireframe_button), orxonox_settings->video_wireframe);
    1928        /*      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_video_Wireframe);
    2029         */
    21         gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), button, TRUE, TRUE, 0);
     30        gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), wireframe_button, TRUE, TRUE, 0);
    2231       
    2332    }
Note: See TracChangeset for help on using the changeset viewer.