Skip to content

Commit

Permalink
Added some braces around control structures
Browse files Browse the repository at this point in the history
  • Loading branch information
ata4 committed Oct 26, 2017
1 parent 35bb3b1 commit 8aadc13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/vi.c
Expand Up @@ -747,8 +747,9 @@ void vi_update(void)
vres = (v_end - v_start) >> 1; // vertical is measured in half-lines

// skip invalid/unsupported frame sizes
if (hres <= 0 || vres <= 0)
if (hres <= 0 || vres <= 0) {
return;
}

x_add = *vi_reg_ptr[VI_X_SCALE] & 0xfff;
x_start = (*vi_reg_ptr[VI_X_SCALE] >> 16) & 0xfff;
Expand Down
5 changes: 3 additions & 2 deletions plugin-mupen64plus/plugin.c
Expand Up @@ -18,10 +18,11 @@ void plugin_init(void)

int core_version;
CoreGetVersion(NULL, &core_version, NULL, NULL, NULL);
if (core_version >= 0x020501)
if (core_version >= 0x020501) {
rdram_size = *gfx.RDRAM_SIZE;
else
} else {
rdram_size = 0x800000;
}

// mupen64plus plugins can't access the hidden bits, so allocate it on our own
rdram_hidden_bits = malloc(rdram_size);
Expand Down

0 comments on commit 8aadc13

Please sign in to comment.