fixed it!
This commit is contained in:
parent
38e2429391
commit
a55963b974
2
Makefile
Normal file
2
Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
export GDK ?= /opt/toolchains/mars/m68k-elf
|
||||
include $(GDK)/makefile.gen
|
@ -8,7 +8,7 @@ int main()
|
||||
|
||||
//Set the colour of the line. We are using pallete 0 for the bitmap, so we have 0->15. 15 is used for white text, so we set an unused pallet colour, 14 to blue - RGB 0000FF.
|
||||
u16 colour_blue = RGB24_TO_VDPCOLOR(0x0000ff);
|
||||
VDP_setPaletteColor(14, colour_blue);
|
||||
PAL_setColor(14, colour_blue);
|
||||
//VDP_setBackgroundColor(14);
|
||||
|
||||
//A line needs a source coordinate x,y and a destination coordinate x,y along with a pallete colour.
|
||||
@ -17,7 +17,7 @@ int main()
|
||||
l.pt1.y = 0;
|
||||
l.pt2.x = 255;
|
||||
l.pt2.y = 0;
|
||||
l.col = 0x0000ff;
|
||||
l.col = 14;
|
||||
l.col |= l.col << 4; // if we do not left shift the colour, we get gaps in the line
|
||||
|
||||
while(TRUE)
|
||||
|
Loading…
Reference in New Issue
Block a user