Subversion Repositories Shiroi

Rev

Rev 10 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 11
Line 1... Line 1...
1
/* $Id: shiroi_video_mk_ii.c 10 2024-08-29 01:39:27Z nishi $ */
1
/* $Id: shiroi_video_mk_ii.c 11 2024-08-29 02:49:47Z nishi $ */
2
#include "shiroi_video_mk_ii.h"
2
#include "shiroi_video_mk_ii.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
#include <stdlib.h>
6
#include <stdlib.h>
Line 37... Line 37...
37
}
37
}
38
 
38
 
39
void shiroi_video_mk_ii_reset(shiroi_t* shiroi, int slot) {
39
void shiroi_video_mk_ii_reset(shiroi_t* shiroi, int slot) {
40
	mc6847_reset(&shiroi->cards[slot].video.mc6847);
40
	mc6847_reset(&shiroi->cards[slot].video.mc6847);
41
	shiroi->cards[slot].video.tick = 0;
41
	shiroi->cards[slot].video.tick = 0;
-
 
42
	int y, x;
-
 
43
	for(y = 0; y < shiroi->cards[slot].video.height; y++) {
-
 
44
		for(x = 0; x < shiroi->cards[slot].video.width; x++) {
-
 
45
			shiroi->cards[slot].video.fb[y * shiroi->cards[slot].video.width + x] = 0x000000ff;
-
 
46
		}
-
 
47
	}
42
}
48
}
43
 
49
 
44
void shiroi_video_mk_ii(shiroi_t* shiroi) {
50
void shiroi_video_mk_ii(shiroi_t* shiroi) {
45
	int i;
51
	int i;
46
 
52