Search
lxdream.org :: lxdream/src/video.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/video.c
changeset 1:eea311cfd33e
next31:495e480360d7
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (16 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
view annotate diff log raw
     1 #include <gnome.h>
     3 GdkImage *img;
     4 GtkWindow *video_win;
     5 GtkWidget *video_area;
     6 char *video_data;
     8 void video_open( void )
     9 {
    10     img = gdk_image_new( GDK_IMAGE_FASTEST, gdk_visual_get_system(),
    11                          640, 480 );
    12     video_win = GTK_WINDOW(gtk_window_new( GTK_WINDOW_TOPLEVEL ));
    13     video_area = gtk_image_new_from_image(img, NULL);
    14     gtk_widget_show( video_area );
    15     gtk_container_add( GTK_CONTAINER(video_win), video_area );
    16     video_data = img->mem;
    18     gtk_window_set_title( video_win, "DreamOn! - Emulation Window" );
    19     gtk_window_set_policy( video_win, FALSE, FALSE, FALSE );
    20     gtk_window_set_default_size( video_win, 640, 480 );
    22     gtk_widget_show( GTK_WIDGET(video_win) );
    23 }
    25 void video_update_frame( void )
    26 {
    27     gtk_widget_queue_draw( video_area );
    28 }
    30 void video_update_size( int hres, int vres, int colmode )
    31 {
    32     /* do something intelligent */
    33 }
.