Subversion Repositories Shiroi

Rev

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

Rev 7 Rev 8
Line 1... Line 1...
1
/* $Id: shiroi_video_mk_ii.c 7 2024-08-28 14:02:52Z nishi $ */
1
/* $Id: shiroi_video_mk_ii.c 8 2024-08-28 16:29:15Z 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 26... Line 26...
26
	desc.fetch_cb = shiroi_video_mk_ii_cb;
26
	desc.fetch_cb = shiroi_video_mk_ii_cb;
27
	desc.user_data = &shiroi->cards[slot];
27
	desc.user_data = &shiroi->cards[slot];
28
 
28
 
29
	mc6847_init(&shiroi->cards[slot].video.mc6847, &desc);
29
	mc6847_init(&shiroi->cards[slot].video.mc6847, &desc);
30
 
30
 
31
	shiroi->cards[slot].video.mc6847.pins |= MC6847_INV;
-
 
32
	int x, y;
31
	int x, y;
33
	for(y = 0; y < shiroi->cards[slot].video.height; y++) {
32
	for(y = 0; y < shiroi->cards[slot].video.height; y++) {
34
		for(x = 0; x < shiroi->cards[slot].video.width; x++) {
33
		for(x = 0; x < shiroi->cards[slot].video.width; x++) {
35
			shiroi->cards[slot].video.fb[y * shiroi->cards[slot].video.width + x] = 0;
34
			shiroi->cards[slot].video.fb[y * shiroi->cards[slot].video.width + x] = 0;
36
		}
35
		}