/* * gfx_rect16 — рамка w×h от (x,y) (mode 0x82); все четыре стороны * в одной W3-скобке. */ #include "_gfx.h" void gfx_rect16(int x, int y, int w, int h, uint8_t color) { if (w <= 0 || h <= 0) return; _gfx_w3_video_begin(); _gfx_hline16_raw(x, y, w, color); _gfx_hline16_raw(x, y + h - 1, w, color); if (h > 2) { _gfx_vline16_raw(x, y + 1, h - 2, color); _gfx_vline16_raw(x + w - 1, y + 1, h - 2, color); } _gfx_w3_video_end(); }