|
|
|
|
@ -267,7 +267,7 @@ drawicon(Uint32 *dst, int x, int y, Uint8 *icon, int fg, int bg)
|
|
|
|
|
void |
|
|
|
|
drawui(Uint32 *dst) |
|
|
|
|
{ |
|
|
|
|
int bottom = HEIGHT - 40; |
|
|
|
|
int bottom = VER * 8 + 8; |
|
|
|
|
drawicon(dst, 0, bottom, brush.color == 1 ? icons[1] : icons[0], 1, 0); |
|
|
|
|
drawicon(dst, 8, bottom, brush.color == 2 ? icons[1] : icons[0], 2, 0); |
|
|
|
|
drawicon(dst, 16, bottom, brush.color == 3 ? icons[1] : icons[0], 3, 0); |
|
|
|
|
@ -522,7 +522,6 @@ main(int argc, char **argv)
|
|
|
|
|
return error("Init", "Failure"); |
|
|
|
|
if(argc < 2 || !opendoc(&doc, argv[1])) |
|
|
|
|
makedoc(&doc, "untitled.chr"); |
|
|
|
|
redraw(pixels); |
|
|
|
|
while(1) { |
|
|
|
|
int tick = SDL_GetTicks(); |
|
|
|
|
SDL_Event event; |
|
|
|
|
|