/* * gfx_fill_rect16 — залитый прямоугольник w×h от (x,y) (mode 0x82). * Поколоночные vlines (per-row RMW в каждой колонке); внешняя * begin/end-скобка мапит W3 один раз на весь прямоугольник. */ #include "_gfx.h" void gfx_fill_rect16(int x, int y, int w, int h, uint8_t color) { if (w <= 0 || h <= 0) return; _gfx_w3_video_begin(); for (int xx = 0; xx < w; xx++) _gfx_vline16_raw(x + xx, y, h, color); _gfx_w3_video_end(); }