Skip to content

Fix #1 DPI scaling issues for multi-monitor setups#2

Open
shukebeta wants to merge 1 commit intorizrmd:mainfrom
shukebeta:main
Open

Fix #1 DPI scaling issues for multi-monitor setups#2
shukebeta wants to merge 1 commit intorizrmd:mainfrom
shukebeta:main

Conversation

@shukebeta
Copy link

@shukebeta shukebeta commented Aug 18, 2025

Summary

Fixes DPI scaling issues that caused misaligned screenshots on multi-monitor setups.

Changes Made

  • Upgraded DPI Awareness: Replaced legacy SetProcessDPIAware() with modern SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2)
  • **Adapted virtual screen approach using SystemInformation.VirtualScreen
  • Cleaner architecture: Simplified SelectionForm to accept Rectangle parameter directly

Technical Details

The new approach uses consistent coordinate systems and lets Windows handle DPI scaling automatically.

Testing

  • ✅ Single monitor (125% DPI)
  • ✅ Multi-monitor setup (built-in 125%, external 100%)
  • ✅ Screenshot selection overlay now aligns correctly with captured area

Provides reliable screenshot functionality across different monitor configurations.

@shukebeta shukebeta changed the title Fix DPI scaling issues for multi-monitor setups Fix #1 DPI scaling issues for multi-monitor setups Aug 18, 2025
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.

1 participant