ko4life-net / ko

Open source development of the game Knight Online. This is a reversed engineered old version of the game aiming to replicate the nostalgic experience we all once had <3
https://github.com/ko4life-net/ko
MIT License
55 stars 22 forks source link

Fixes the border width of the game #236

Open UTengine opened 4 months ago

UTengine commented 4 months ago

Fixes the border width of the game

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

Description

Fixes the border width of the game where normally turning camera is captured outside of the frame and skill icons are cut off

💔Thank you! image

UTengine commented 4 months ago

Does the GetSystemMetrics scale with dpi? Does it even return the correct sized acquainted for 3d styles like aero and glass themes? iWidth = rect.right + GetSystemMetrics(SM_CXFRAME)*2.f;