Skip to content

Commit

Permalink
(net retropad core) cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Sep 29, 2016
1 parent 313c091 commit 27ee26b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cores/libretro-net-retropad/net_retropad_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,7 @@ void NETRETROPAD_CORE_PREFIX(retro_reset)(void)
void NETRETROPAD_CORE_PREFIX(retro_run)(void)
{
int i;
unsigned rle, runs;
uint16_t *pixel = NULL;
unsigned rle;
unsigned input_state = 0;

/* Update input states and send them if needed */
Expand All @@ -352,11 +351,11 @@ void NETRETROPAD_CORE_PREFIX(retro_run)(void)
input_state |= 1 << i;
}

pixel = frame_buf + 49 * 320 + 32;

for (rle = 0; rle < sizeof(retropad_buttons); )
{
char paint = 0;
unsigned runs;
char paint = 0;
uint16_t *pixel = frame_buf + 49 * 320 + 32;

for (runs = retropad_buttons[rle++]; runs > 0; runs--)
{
Expand Down

0 comments on commit 27ee26b

Please sign in to comment.