TIP: Render to a 160x144 canvas, and then draw that to your main screen.
Well, I was just scaling the whole game by 4 including the screen, but I downscaled it back to normal because it was producing more than 4 colors.