1 /*
2 * viciivsid-resources.c - Resources for the MOS 6569 (VIC-II) emulation.
3 *
4 * Written by
5 * Andreas Boose <viceteam@t-online.de>
6 * Ettore Perazzoli <ettore@comm2000.it>
7 *
8 * This file is part of VICE, the Versatile Commodore Emulator.
9 * See README for copyright notice.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 * 02111-1307 USA.
25 *
26 */
27
28 #include "vice.h"
29
30 #include <stdio.h>
31
32 #include "archdep.h"
33 #include "fullscreen.h"
34 #include "machine.h"
35 #include "raster-resources.h"
36 #include "resources.h"
37 #include "vicii-color.h"
38 #include "vicii-resources.h"
39 #include "vicii-timing.h"
40 #include "vicii.h"
41 #include "viciitypes.h"
42 #include "video.h"
43
44 static video_chip_cap_t video_chip_cap;
45
vicii_resources_init(void)46 int vicii_resources_init(void)
47 {
48 video_chip_cap.dsize_allowed = ARCHDEP_VICII_DSIZE;
49 video_chip_cap.dsize_default = ARCHDEP_VICII_DSIZE;
50 video_chip_cap.dsize_limit_width = 0;
51 video_chip_cap.dsize_limit_height = 0;
52 video_chip_cap.dscan_allowed = ARCHDEP_VICII_DSCAN;
53 video_chip_cap.hwscale_allowed = ARCHDEP_VICII_HWSCALE;
54 video_chip_cap.scale2x_allowed = ARCHDEP_VICII_DSIZE;
55 video_chip_cap.external_palette_name = "default";
56 video_chip_cap.double_buffering_allowed = ARCHDEP_VICII_DBUF;
57 video_chip_cap.single_mode.sizex = 1;
58 video_chip_cap.single_mode.sizey = 1;
59 video_chip_cap.single_mode.rmode = VIDEO_RENDER_PAL_1X1;
60 video_chip_cap.double_mode.sizex = 2;
61 video_chip_cap.double_mode.sizey = 2;
62 video_chip_cap.double_mode.rmode = VIDEO_RENDER_PAL_2X2;
63
64 fullscreen_capability(&(video_chip_cap.fullscreen));
65
66 vicii.video_chip_cap = &video_chip_cap;
67
68 return raster_resources_chip_init("VICII", &vicii.raster, &video_chip_cap);
69 }
70