diff --git a/extern/agg24-svn/include/agg_pixfmt_rgba.h b/extern/agg24-svn/include/agg_pixfmt_rgba.h index 701ccad6ef6a..cb249949f3ad 100644 --- a/extern/agg24-svn/include/agg_pixfmt_rgba.h +++ b/extern/agg24-svn/include/agg_pixfmt_rgba.h @@ -1555,22 +1555,22 @@ namespace agg pixel_type* next() { - return (pixel_type*)(c + pix_step); + return reinterpret_cast(c) + 1; } const pixel_type* next() const { - return (const pixel_type*)(c + pix_step); + return reinterpret_cast(c) + 1; } pixel_type* advance(int n) { - return (pixel_type*)(c + n * pix_step); + return reinterpret_cast(c) + n; } const pixel_type* advance(int n) const { - return (const pixel_type*)(c + n * pix_step); + return reinterpret_cast(c) + n; } }; @@ -2233,22 +2233,22 @@ namespace agg pixel_type* next() { - return (pixel_type*)(c + pix_step); + return reinterpret_cast(c) + 1; } const pixel_type* next() const { - return (const pixel_type*)(c + pix_step); + return reinterpret_cast(c) + 1; } pixel_type* advance(int n) { - return (pixel_type*)(c + n * pix_step); + return reinterpret_cast(c) + n; } const pixel_type* advance(int n) const { - return (const pixel_type*)(c + n * pix_step); + return reinterpret_cast(c) + n; } };