diff options
author | Nitrus | 2018-11-20 18:57:57 +0100 |
---|---|---|
committer | David Turner | 2018-11-21 07:54:49 +0000 |
commit | 4d84105237d00adc8ad49248cca729833b0d167a (patch) | |
tree | 1f3675f312f4e747e6e4775912a7718ebf8b4553 /backends/platform/3ds/sprite.cpp | |
parent | 2122c07d5fdddbb1c28dd7dd17fa8c1df1a4c28f (diff) | |
download | scummvm-rg350-4d84105237d00adc8ad49248cca729833b0d167a.tar.gz scummvm-rg350-4d84105237d00adc8ad49248cca729833b0d167a.tar.bz2 scummvm-rg350-4d84105237d00adc8ad49248cca729833b0d167a.zip |
3DS: Fix deprecated C3D methods
Diffstat (limited to 'backends/platform/3ds/sprite.cpp')
-rw-r--r-- | backends/platform/3ds/sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/3ds/sprite.cpp b/backends/platform/3ds/sprite.cpp index 7d860743a2..ec9e94f333 100644 --- a/backends/platform/3ds/sprite.cpp +++ b/backends/platform/3ds/sprite.cpp @@ -104,8 +104,8 @@ void Sprite::render() { if (dirtyPixels) { dirtyPixels = false; GSPGPU_FlushDataCache(pixels, w * h * format.bytesPerPixel); - C3D_SafeDisplayTransfer((u32*)pixels, GX_BUFFER_DIM(w, h), (u32*)texture.data, GX_BUFFER_DIM(w, h), TEXTURE_TRANSFER_FLAGS); gspWaitForPPF(); + C3D_SyncDisplayTransfer((u32*)pixels, GX_BUFFER_DIM(w, h), (u32*)texture.data, GX_BUFFER_DIM(w, h), TEXTURE_TRANSFER_FLAGS); } C3D_TexBind(0, &texture); @@ -137,7 +137,7 @@ C3D_Mtx* Sprite::getMatrix() { dirtyMatrix = false; Mtx_Identity(&modelview); Mtx_Scale(&modelview, scaleX, scaleY, 1.f); - Mtx_Translate(&modelview, posX, posY, 0); + Mtx_Translate(&modelview, posX, posY, 0, true); } return &modelview; } |