Skip to content

ESC/P 2: Fix dot size and non-adjacent mode with graphics#6784

Merged
OBattler merged 1 commit into
86Box:masterfrom
Lili1228:master
Feb 7, 2026
Merged

ESC/P 2: Fix dot size and non-adjacent mode with graphics#6784
OBattler merged 1 commit into
86Box:masterfrom
Lili1228:master

Conversation

@Lili1228
Copy link
Copy Markdown
Contributor

@Lili1228 Lili1228 commented Feb 7, 2026

Summary

The previous code was pretty poor at handling various dot sizes. For instance (ESC * 0x02), 120x60 DPI means dots in diameter of 1/60" are used and head is moved by dot's radius to reach that 120 DPI. Combine it with the wrong assumption that, in non-adjacent mode, dot size is always 1x1 px (so on 360 DPI, 1/360" radius) and you have a recipe for a disaster.

Once fixed, Windows 95 test page looks nice.

Black-and-white Windows 95 test page in Polish

Checklist

  • Closes #xxx
  • I have tested my changes locally and validated that the functionality works as intended
  • I have discussed this with core contributors already
  • This pull request requires changes to the ROM set
  • This pull request requires changes to the asset set

References

https://files.support.epson.com/pdf/general/escp2ref.pdf

@OBattler OBattler merged commit 7b32bc2 into 86Box:master Feb 7, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants