mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-09 05:47:30 +08:00
Fix: ldopengl screenshot reverse color (#4136)
This commit is contained in:
parent
782c8d0752
commit
7c574ceaf5
@ -247,7 +247,7 @@ class LDOpenGLImpl:
|
|||||||
|
|
||||||
img = ctypes.cast(img_ptr, ctypes.POINTER(ctypes.c_ubyte * (height * width * 3))).contents
|
img = ctypes.cast(img_ptr, ctypes.POINTER(ctypes.c_ubyte * (height * width * 3))).contents
|
||||||
|
|
||||||
image = np.ctypeslib.as_array(img).reshape((height, width, 3))
|
image = np.ctypeslib.as_array(img).copy().reshape((height, width, 3))
|
||||||
return image
|
return image
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user