fixed it!

This commit is contained in:
Samuel Walker 2024-08-29 18:08:02 -06:00
parent 38e2429391
commit a55963b974
2 changed files with 4 additions and 2 deletions

2
Makefile Normal file
View File

@ -0,0 +1,2 @@
export GDK ?= /opt/toolchains/mars/m68k-elf
include $(GDK)/makefile.gen

View File

@ -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. //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); u16 colour_blue = RGB24_TO_VDPCOLOR(0x0000ff);
VDP_setPaletteColor(14, colour_blue); PAL_setColor(14, colour_blue);
//VDP_setBackgroundColor(14); //VDP_setBackgroundColor(14);
//A line needs a source coordinate x,y and a destination coordinate x,y along with a pallete colour. //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.pt1.y = 0;
l.pt2.x = 255; l.pt2.x = 255;
l.pt2.y = 0; 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 l.col |= l.col << 4; // if we do not left shift the colour, we get gaps in the line
while(TRUE) while(TRUE)