Subversion Repositories Shiroi

Rev

Rev 1 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 7
Line 1... Line 1...
1
/* $Id: shiroi_video_mk_i.c 1 2024-08-28 08:10:28Z nishi $ */
1
/* $Id: shiroi_video_mk_i.c 7 2024-08-28 14:02:52Z nishi $ */
2
#include "shiroi_video_mk_i.h"
2
#include "shiroi_video_mk_i.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
#include "tms9918util.h"
6
#include "tms9918util.h"
Line 14... Line 14...
14
	shiroi->cards[slot].video.width = TMS9918_PIXELS_X;
14
	shiroi->cards[slot].video.width = TMS9918_PIXELS_X;
15
	shiroi->cards[slot].video.height = TMS9918_PIXELS_Y;
15
	shiroi->cards[slot].video.height = TMS9918_PIXELS_Y;
16
	shiroi->cards[slot].video.tick = 0;
16
	shiroi->cards[slot].video.tick = 0;
17
 
17
 
18
	shiroi->cards[slot].video.vdp = vrEmuTms9918New();
18
	shiroi->cards[slot].video.vdp = vrEmuTms9918New();
19
	shiroi->cards[slot].video.fb = malloc(TMS9918_PIXELS_Y * TMS9918_PIXELS_X * sizeof(uint32_t));
-
 
20
	int x, y;
19
	int x, y;
21
	for(y = 0; y < TMS9918_PIXELS_Y; y++) {
20
	for(y = 0; y < TMS9918_PIXELS_Y; y++) {
22
		for(x = 0; x < TMS9918_PIXELS_X; x++) {
21
		for(x = 0; x < TMS9918_PIXELS_X; x++) {
23
			shiroi->cards[slot].video.fb[y * TMS9918_PIXELS_X + x] = 0;
22
			shiroi->cards[slot].video.fb[y * TMS9918_PIXELS_X + x] = 0;
24
		}
23
		}