GRAPHICS: Fix casting away const
This commit is contained in:
parent
8dfa33ff1f
commit
ab16233318
1 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ Graphics::Surface *Surface::convertTo(const PixelFormat &dstFormat, const byte *
|
||||||
assert(palette);
|
assert(palette);
|
||||||
|
|
||||||
for (int y = 0; y < h; y++) {
|
for (int y = 0; y < h; y++) {
|
||||||
const byte *srcRow = (byte *)getBasePtr(0, y);
|
const byte *srcRow = (const byte *)getBasePtr(0, y);
|
||||||
byte *dstRow = (byte *)surface->getBasePtr(0, y);
|
byte *dstRow = (byte *)surface->getBasePtr(0, y);
|
||||||
|
|
||||||
for (int x = 0; x < w; x++) {
|
for (int x = 0; x < w; x++) {
|
||||||
|
@ -317,7 +317,7 @@ Graphics::Surface *Surface::convertTo(const PixelFormat &dstFormat, const byte *
|
||||||
} else {
|
} else {
|
||||||
// Converting from high color to high color
|
// Converting from high color to high color
|
||||||
for (int y = 0; y < h; y++) {
|
for (int y = 0; y < h; y++) {
|
||||||
const byte *srcRow = (byte *)getBasePtr(0, y);
|
const byte *srcRow = (const byte *)getBasePtr(0, y);
|
||||||
byte *dstRow = (byte *)surface->getBasePtr(0, y);
|
byte *dstRow = (byte *)surface->getBasePtr(0, y);
|
||||||
|
|
||||||
for (int x = 0; x < w; x++) {
|
for (int x = 0; x < w; x++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue