else if (Canvas.Mode == CANVAS_MODE_MAP16)
} else if (Canvas.Mode == CANVAS_MODE_MAP16) { Canvas.MapMode = CMAP_MODE_32;
void CanvasChange(int mode){	if (mode != 0)		Canvas.Mode = mode;	else {		if (Canvas.Mode == CANVAS_MODE_SLEEP)			Canvas.Mode = CANVAS_MODE_GSLCD;		else if (Canvas.Mode == CANVAS_MODE_GSLCD)			Canvas.Mode = CANVAS_MODE_MAP16;		else if (Canvas.Mode == CANVAS_MODE_MAP16)			Canvas.Mode = CANVAS_MODE_MAP32;		else if (Canvas.Mode == CANVAS_MODE_MAP32)			Canvas.Mode = CANVAS_MODE_KBD_A;		else if (Canvas.Mode == CANVAS_MODE_KBD_A)			Canvas.Mode = CANVAS_MODE_KBD_B;		else if (Canvas.Mode == CANVAS_MODE_KBD_B)			Canvas.Mode = CANVAS_MODE_SLEEP;	}	MainWndInfo.CanvasMode = Canvas.Mode;	CanvasReset();	CanvasClear();	CanvasReadPanelInfo(1);	CanvasUpdate(1);	CanvasPaintAll();}