- ui.brushes[TOOL_PEN].color_no = COLOR_BLACK;
- ui.brushes[TOOL_ERASER].color_no = COLOR_WHITE;
- ui.brushes[TOOL_HIGHLIGHTER].color_no = COLOR_YELLOW;
+ ui.cur_brush = &(ui.brushes[0][TOOL_PEN]);
+ ui.toolno[0] = TOOL_PEN;
+ for (i=1; i<=NUM_BUTTONS; i++) ui.toolno[i] = TOOL_ERASER;
+ for (i=0; i<=NUM_BUTTONS; i++) {
+ ui.ruler[i] = FALSE;
+ ui.linked_brush[i] = BRUSH_LINKED;
+ }
+ ui.brushes[0][TOOL_PEN].color_no = COLOR_BLACK;
+ ui.brushes[0][TOOL_ERASER].color_no = COLOR_WHITE;
+ ui.brushes[0][TOOL_HIGHLIGHTER].color_no = COLOR_YELLOW;