- gfx_bitmapClear(&lcd_bitmap);
- gfx_rectDraw(&lcd_bitmap, 10, 10, LCD_WIDTH-10, LCD_HEIGHT-10);
- gfx_setClipRect(&lcd_bitmap, 10, 10, LCD_WIDTH-10, LCD_HEIGHT-10);
- magic(&lcd_bitmap, x, y);
+ gfx_bitmapClear(bm);
+ gfx_setClipRect(bm, 0, 0, bm->width, bm->height);
+ gfx_rectDraw(bm, 10, 10, bm->width-10, bm->height-10);
+ gfx_setClipRect(bm, 11, 11, bm->width-11, bm->height-11);
+ magic(bm, x, y);