sw_engine: fix a logical wrong.

the value should be updated properly.
This commit is contained in:
Hermet Park 2023-05-06 15:08:28 +09:00 committed by Hermet Park
parent cc1f86e719
commit d7eb913741

View file

@ -1602,13 +1602,13 @@ bool rasterConvertCS(Surface* surface, ColorSpace to)
auto from = surface->cs;
if ((from == ColorSpace::ABGR8888 && to == ColorSpace::ARGB8888) || (from == ColorSpace::ABGR8888S && to == ColorSpace::ARGB8888S)) {
surface->cs = to;
return cRasterABGRtoARGB(surface);
}
if ((from == ColorSpace::ARGB8888 && to == ColorSpace::ABGR8888) || (from == ColorSpace::ARGB8888S && to == ColorSpace::ABGR8888S)) {
surface->cs = to;
return cRasterARGBtoABGR(surface);
}
surface->cs = to;
return false;
}