Skip to content
Permalink
Browse files
Added some braces around control structures
  • Loading branch information
ata4 committed Oct 26, 2017
1 parent 35bb3b1 commit 8aadc13cc60c58d32fdb0bb2650a68837cf01ddf
Showing with 5 additions and 3 deletions.
  1. +2 −1 core/vi.c
  2. +3 −2 plugin-mupen64plus/plugin.c
@@ -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;
@@ -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);

0 comments on commit 8aadc13

Please sign in to comment.