mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 12:34:30 +00:00
sw_engine: fix broken MSVC compatibility.
error: use of undeclared identifier 'ulong' @Issue: https://github.com/Samsung/thorvg/issues/541
This commit is contained in:
parent
ac95433b53
commit
1154986a58
1 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ struct RleWorker
|
||||||
|
|
||||||
static inline SwPoint UPSCALE(const SwPoint& pt)
|
static inline SwPoint UPSCALE(const SwPoint& pt)
|
||||||
{
|
{
|
||||||
return {SwCoord(ulong(pt.x) << (PIXEL_BITS - 6)), SwCoord(ulong(pt.y) << (PIXEL_BITS - 6))};
|
return {SwCoord(((unsigned long) pt.x) << (PIXEL_BITS - 6)), SwCoord(((unsigned long) pt.y) << (PIXEL_BITS - 6))};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,13 +112,13 @@ static inline SwCoord TRUNC(const SwCoord x)
|
||||||
|
|
||||||
static inline SwPoint SUBPIXELS(const SwPoint& pt)
|
static inline SwPoint SUBPIXELS(const SwPoint& pt)
|
||||||
{
|
{
|
||||||
return {SwCoord(ulong(pt.x) << PIXEL_BITS), SwCoord(ulong(pt.y) << PIXEL_BITS)};
|
return {SwCoord(((unsigned long) pt.x) << PIXEL_BITS), SwCoord(((unsigned long) pt.y) << PIXEL_BITS)};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static inline SwCoord SUBPIXELS(const SwCoord x)
|
static inline SwCoord SUBPIXELS(const SwCoord x)
|
||||||
{
|
{
|
||||||
return SwCoord(ulong(x) << PIXEL_BITS);
|
return SwCoord(((unsigned long) x) << PIXEL_BITS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue