Skip to content

Commit

Permalink
from the office of standards and practices
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Nov 11, 2024
1 parent 613bdc2 commit 9f0cd1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/burn/drv/snes/cart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void dsp_bios_reform(uint8_t *ori_bios, uint8_t *new_bios, int is_seta) {
int bios_size = bios_sizes[is_seta];
int data_size = data_sizes[is_seta];
bprintf(0, _T("bios size / data size: %x %x\n"), bios_size, data_size);
UINT32 *newbios = (UINT32*)new_bios;
uint32_t *newbios = (uint32_t*)new_bios;
for (int i = 0; i < bios_size; i += 4) {
*newbios = (ori_bios[i + 0] << 24) | (ori_bios[i + 1] << 16) | (ori_bios[i + 2] << 8); // only uses 24bits!
newbios++;
Expand Down
2 changes: 1 addition & 1 deletion src/burn/drv/snes/ppu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static inline void ppu_handlePixel(int x, int y) {
r2 = r; g2 = g; b2 = b;
}
}
UINT32 *dest = (UINT32*)&pixelBuffer[((y - 1) + (evenFrame ? 0 : 239)) * 2048 + x * 8];
uint32_t *dest = (uint32_t*)&pixelBuffer[((y - 1) + (evenFrame ? 0 : 239)) * 2048 + x * 8];

dest[0] = (UINT8)((((b2 << 3) | (b2 >> 2)) * bright_lut[brightness]) >> 16) << 0 |
(UINT8)((((g2 << 3) | (g2 >> 2)) * bright_lut[brightness]) >> 16) << 8 |
Expand Down
2 changes: 1 addition & 1 deletion src/burn/drv/snes/snes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ static int snes_getAccessTime(Snes* snes, uint32_t adr) {
}
#endif

static inline int snes_getAccessTime(Snes* snes, UINT32 adr)
static inline int snes_getAccessTime(Snes* snes, uint32_t adr)
{
if ((adr & 0x408000) == 0)
{
Expand Down

0 comments on commit 9f0cd1c

Please sign in to comment.