From a55963b9744e604797f408f16f5f199316fc0b74 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Thu, 29 Aug 2024 18:08:02 -0600 Subject: [PATCH] fixed it! --- Makefile | 2 ++ src/main.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bb97205 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +export GDK ?= /opt/toolchains/mars/m68k-elf +include $(GDK)/makefile.gen diff --git a/src/main.c b/src/main.c index d601373..3a1a28e 100644 --- a/src/main.c +++ b/src/main.c @@ -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)