Copy properties when converting a surface to a new format
This fixes retaining the cursor hotspot when converting cursor frames to SDL_PIXELFORMAT_ARGB8888
This commit is contained in:
@@ -2147,6 +2147,13 @@ end:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copy properties
|
||||||
|
if (surface->props) {
|
||||||
|
if (!SDL_CopyProperties(surface->props, SDL_GetSurfaceProperties(convert))) {
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// We're ready to go!
|
// We're ready to go!
|
||||||
return convert;
|
return convert;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user