1
0
Эх сурвалжийг харах

win-capture: Fix incorrect parameter type warning

Was using const char** when the parameter expects const uint8_t**
jp9000 10 жил өмнө
parent
commit
aa3bdd9845

+ 1 - 1
plugins/win-capture/cursor-capture.c

@@ -151,7 +151,7 @@ static inline bool cursor_capture_icon(struct cursor_data *data, HICON icon)
 	bitmap = cursor_capture_icon_bitmap(&ii, &width, &height);
 	bitmap = cursor_capture_icon_bitmap(&ii, &width, &height);
 	if (bitmap) {
 	if (bitmap) {
 		data->texture = gs_texture_create(width, height, GS_BGRA,
 		data->texture = gs_texture_create(width, height, GS_BGRA,
-				1, &bitmap, 0);
+				1, (const uint8_t**)&bitmap, 0);
 		bfree(bitmap);
 		bfree(bitmap);
 
 
 		data->x_hotspot = ii.xHotspot;
 		data->x_hotspot = ii.xHotspot;