> however it won't fix the program that you originally > sent. the "fix" (if you can call sidestepping the problem :a fix") for the original program is to use RGB24 as the channel for black's allocimage():
black = allocimage(display, Rect(0, 0, Dx(screen->r), Dy(screen->r)), RGB24, 0, DBlack);