cardmaker icon indicating copy to clipboard operation
cardmaker copied to clipboard

Color picker wrong on high dpi displays

Open markuskruse opened this issue 1 year ago • 5 comments

Describe the bug I have a high resolution display (4k) and when I use the color picker, the sampled position is offset. I assume there is a coordinate system conversion that needs to happen.

Desktop (please complete the following information):

  • OS: Windows 11
  • Version [e.g. CardMaker 1.3.0.0]

Screenshots If applicable, add screenshots to help explain your problem. Github lets you drag/drop images.

markuskruse avatar Nov 23 '24 11:11 markuskruse

What scaling amount do you have in the windows display settings? I'm guessing you're right with conversion. Admittedly I'm surprised there aren't a lot more bugs related to high dpi +scaling!

I'll see if I have access to a monitor like yours (I have a great old one!) to try out any changes. It might be a while before I get a chance so hopefully this issue isn't too horrible.

nhmkdev avatar Nov 23 '24 14:11 nhmkdev

I have it at 150%, this is what windows recommends. I managed to hit the right spot after a while. Eyeballing 150% movement :-) If you have a branch and would like me to test it, let me know.

markuskruse avatar Nov 23 '24 18:11 markuskruse

I tested setting my scaling to 100% and the color picker works as it should. I think you can just set your scaling to any value. It might look a bit big but you should still be able to provoke the bug.

markuskruse avatar Nov 23 '24 18:11 markuskruse

I had a chance to try this on a 2k monitor but it didn't occur unfortunately. It was a windows 10 machine.

Maybe there's another factor affecting this. Which version of win11 and what video card are you running?

nhmkdev avatar Nov 26 '24 14:11 nhmkdev

I'm running latest win11 Home 24H2. My video card is a Nvidia geforce RTX 2080 Super. No big deal if it can't be replicated.

markuskruse avatar Nov 29 '24 12:11 markuskruse