PSP2: Fix some warnings

This commit is contained in:
Jeffrey Pfau 2016-09-17 02:07:38 -07:00
parent 1f20b3e430
commit 36ea350c6a
1 changed files with 2 additions and 1 deletions
src/platform/psp2

View File

@ -316,6 +316,7 @@ void mPSP2Unpaused(struct mGUIRunner* runner) {
}
void mPSP2Teardown(struct mGUIRunner* runner) {
UNUSED(runner);
CircleBufferDeinit(&rumble.history);
vita2d_free_texture(tex);
vita2d_free_texture(screenshot);
@ -392,7 +393,7 @@ void mPSP2Draw(struct mGUIRunner* runner, bool faded) {
void mPSP2DrawScreenshot(struct mGUIRunner* runner, const uint32_t* pixels, unsigned width, unsigned height, bool faded) {
UNUSED(runner);
uint32_t* texpixels = vita2d_texture_get_datap(screenshot);
int y;
unsigned y;
for (y = 0; y < height; ++y) {
memcpy(&texpixels[256 * y], &pixels[width * y], width * 4);
}