Commits (1)
  • Deucе's avatar
    Numerous changes: · 634c8763
    Deucе authored
    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)
...@@ -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.