Skip to content
Snippets Groups Projects
Commit 634c8763 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Numerous changes:

Clamp coordinate translation max
Fill using native pattern, not scaled pattern
Add a bad, broken, and slow even/odd fill
Fix logging when RIP is enabled
Use the same ellipse algorithm for partial as full ellipses
Detect diagonal movement in ellipse drawing and don't make the edge fat
Only recurse once in the flood fill
Implement the v2 poly bezier command
Enable filled pie slices
Add RIP_POINT command (basically a scaled pixel using line width)
parent e0d937bb
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2138 passed
...@@ -434,8 +434,8 @@ static uint32_t color_value(uint32_t col) ...@@ -434,8 +434,8 @@ static uint32_t color_value(uint32_t col)
{ {
if (col & 0x80000000) if (col & 0x80000000)
return col; return col;
if (col < sizeof(palette) / sizeof(palette[0])) if ((col & 0xffffff) < sizeof(palette) / sizeof(palette[0]))
return palette[col]; return (col & 0xff000000) | palette[col & 0xffffff];
fprintf(stderr, "Invalid colour value: %08x\n", col); fprintf(stderr, "Invalid colour value: %08x\n", col);
return 0xff000000; return 0xff000000;
} }
......
...@@ -921,7 +921,7 @@ get_rip_version(int oldver, int *changed) ...@@ -921,7 +921,7 @@ get_rip_version(int oldver, int *changed)
uifc.helpbuf= "`RIP Version`\n\n" uifc.helpbuf= "`RIP Version`\n\n"
"RIP v1 requires EGA mode while RIP v3\n" "RIP v1 requires EGA mode while RIP v3\n"
"works in any screen mode."; "works in any screen mode.";
switch(uifc.list(WIN_SAV,0,0,0,&cur,&bar,"RIP Mode",rip_versions)) { switch(uifc.list(WIN_SAV,0,0,0,&cur,NULL,"RIP Mode",rip_versions)) {
case -1: case -1:
check_exit(FALSE); check_exit(FALSE);
break; break;
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment