mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine: fix a logical wrong.
the value should be updated properly.
This commit is contained in:
parent
cc1f86e719
commit
d7eb913741
1 changed files with 2 additions and 2 deletions
|
@ -1602,13 +1602,13 @@ bool rasterConvertCS(Surface* surface, ColorSpace to)
|
||||||
auto from = surface->cs;
|
auto from = surface->cs;
|
||||||
|
|
||||||
if ((from == ColorSpace::ABGR8888 && to == ColorSpace::ARGB8888) || (from == ColorSpace::ABGR8888S && to == ColorSpace::ARGB8888S)) {
|
if ((from == ColorSpace::ABGR8888 && to == ColorSpace::ARGB8888) || (from == ColorSpace::ABGR8888S && to == ColorSpace::ARGB8888S)) {
|
||||||
|
surface->cs = to;
|
||||||
return cRasterABGRtoARGB(surface);
|
return cRasterABGRtoARGB(surface);
|
||||||
}
|
}
|
||||||
if ((from == ColorSpace::ARGB8888 && to == ColorSpace::ABGR8888) || (from == ColorSpace::ARGB8888S && to == ColorSpace::ABGR8888S)) {
|
if ((from == ColorSpace::ARGB8888 && to == ColorSpace::ABGR8888) || (from == ColorSpace::ARGB8888S && to == ColorSpace::ABGR8888S)) {
|
||||||
|
surface->cs = to;
|
||||||
return cRasterARGBtoABGR(surface);
|
return cRasterARGBtoABGR(surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
surface->cs = to;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue