Skip to content

gdi32 draw.ts Rectangle add Palette #29

@wintops

Description

@wintops
  if (isPaletteIndex(brush.color)) {
          const pal = emu.handles.get<PaletteInfo>(dc.selectedPalette);
          const [r, g, b] = resolveColor(brush.color, pal);
          dc.ctx.fillStyle = `rgb(${r},${g},${b})`;
        } 
    
else    
      dc.ctx.fillStyle = colorToCSS(brush.color);
      dc.ctx.fillRect(left, top, right - left, bottom - top);
    }

user32 FillRect too

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions