1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 22:08:20 +08:00

Fix: ldopengl screenshot reverse color (#4136) (#4147)

This commit is contained in:
SarContDeli
2024-09-02 22:52:28 +08:00
committed by GitHub
parent 289c592f8f
commit 7935e91d61

View File

@@ -247,7 +247,7 @@ class LDOpenGLImpl:
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
@staticmethod