smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
616 stars 156 forks source link

question. win10. monitor IDs are started from 1 #88

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, i'm experiencing an error with not being able to grab the screen on windows. The only evidence i can catch now is GetMonitors() returns monitors with IDs starting from 1. In normal situation its 0 based. I can't see from the code how this can happen.

Environment is a laptop, with external monitor attached. Laptop lid is closed and only the external monitor is in use. It's not always the case, i'm trying to get steps to reproduce but not succeeded so far. I saw it three time during two month. The only workaround is a reboot.

Has anybody experienced similar behavior?

smasherprog commented 3 years ago

I havent seen this before. You can see about how to fix it and issue a pull request on this.

ghost commented 3 years ago

My bad. That project i've been trying to fix is using old! version of the _screen_capturelite and in that version there's bug. Current version looks OK. Sorry for the noise