We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a59bf commit 0e3b484Copy full SHA for 0e3b484
mss/windows.py
@@ -48,7 +48,7 @@ class BITMAPINFO(ctypes.Structure):
48
class MSS(MSSBase):
49
""" Multiple ScreenShots implementation for Microsoft Windows. """
50
51
- _bbox = None
+ _bbox = {'height': 0, 'width': 0}
52
_bmp = None
53
_data = None
54
_memdc = None
@@ -207,7 +207,7 @@ def grab(self, monitor):
207
gdi = ctypes.windll.gdi32
208
width, height = monitor['width'], monitor['height']
209
210
- if self._bbox != monitor:
+ if (self._bbox['height'], self._bbox['width']) != (height, width):
211
self._bbox = monitor
212
self._bmi.bmiHeader.biWidth = width
213
self._bmi.bmiHeader.biHeight = -height # Why minus? [1]
0 commit comments