2 * $Id: video.c,v 1.2 2005-12-25 08:24:07 nkeynes Exp $
4 * The PC side of the video support (responsible for actually displaying /
7 * Copyright (c) 2005 Nathan Keynes.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
24 GtkWidget *video_area;
27 void video_open( void )
29 img = gdk_image_new( GDK_IMAGE_FASTEST, gdk_visual_get_system(),
31 video_win = GTK_WINDOW(gtk_window_new( GTK_WINDOW_TOPLEVEL ));
32 video_area = gtk_image_new_from_image(img, NULL);
33 gtk_widget_show( video_area );
34 gtk_container_add( GTK_CONTAINER(video_win), video_area );
35 video_data = img->mem;
37 gtk_window_set_title( video_win, "DreamOn! - Emulation Window" );
38 gtk_window_set_policy( video_win, FALSE, FALSE, FALSE );
39 gtk_window_set_default_size( video_win, 640, 480 );
41 gtk_widget_show( GTK_WIDGET(video_win) );
44 void video_update_frame( void )
46 gtk_widget_queue_draw( video_area );
49 void video_update_size( int hres, int vres, int colmode )
51 /* do something intelligent */
.