projects
/
retrocrawl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
conv_sprite tool
[retrocrawl]
/
src
/
amiga
/
gfx.c
1
#include "gfx.h"
2
#include "hwregs.h"
3
4
int init_gfx(void)
5
{
6
int i;
7
8
REG_BPLCON0 = BPLCON0_COUNT(NBPL) | BPLCON0_COLOR;
9
REG_BPLCON1 = 0;
10
REG_DIWSTART = 0x2c81;
11
REG_DIWSTOP = 0x2cc1;
12
REG_DDFSTART = 0x38;
13
REG_DDFSTOP = 0xd0;
14
15
for(i=0; i<NBPL; i++) {
16
bplptr[i] = framebuf + SCANSZ * i;
17
}
18
REG_BPL1MOD = SCANSZ * (NBPL - 1);
19
REG_BPL2MOD = SCANSZ * (NBPL - 1);
20
21
for(i=0; i<32; i++) {
22
REG_COLOR_PTR[i] = 0xf0f;
23
}
24
25
return 0;
26
}