libc: BGI Фаза 2d-2 — setlinestyle (стили и толщина линий)

setlinestyle/getlinesettings: SOLID/DOTTED/CENTER/DASHED/USERBIT +
NORM/THICK. _bgi_styled_line — Брезенхэм с 16-битной маской (пропуск
пикселя по биту) и дублированием ±1 перпендикулярно оси для THICK;
SOLID+NORM идёт быстрым путём (accel _bgi_lineseg). line/lineto/linerel/
rectangle/drawpoly переведены на него. Проверено в MAME (tests/bgitest).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-08 16:14:03 +03:00
parent 25cb7ba554
commit b26560c409
14 changed files with 148 additions and 40 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ void drawpoly(int numpoints, const int *polypoints)
int i;
if (numpoints < 2) return;
for (i = 0; i < numpoints - 1; i++) {
_bgi_lineseg(polypoints[2 * i], polypoints[2 * i + 1],
_bgi_styled_line(polypoints[2 * i], polypoints[2 * i + 1],
polypoints[2 * i + 2], polypoints[2 * i + 3],
_bgi_fg);
}