all repos — mgba @ 36ea350c6a37fd851ea9dbb0881cc379198443c1

mGBA Game Boy Advance Emulator

PSP2: Fix some warnings
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 02:07:38 -0700
commit

36ea350c6a37fd851ea9dbb0881cc379198443c1

parent

1f20b3e430850c14811a8fdf4a91d2f38af6debe

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/psp2/psp2-context.csrc/platform/psp2/psp2-context.c

@@ -316,6 +316,7 @@ }

} void mPSP2Teardown(struct mGUIRunner* runner) { + UNUSED(runner); CircleBufferDeinit(&rumble.history); vita2d_free_texture(tex); vita2d_free_texture(screenshot);

@@ -392,7 +393,7 @@

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); }