Glide64: fix up some issues related to warnings with Visual Studio
This commit is contained in:
parent
8746daa1e4
commit
e549c4b08e
|
@ -1773,10 +1773,10 @@ static void rdp_settilesize()
|
|||
rdp.tiles[tile].f_ul_s = (float)((rdp.cmd0 >> 12) & 0xFFF) / 4.0f;
|
||||
rdp.tiles[tile].f_ul_t = (float)(rdp.cmd0 & 0xFFF) / 4.0f;
|
||||
|
||||
int ul_s = (((wxUint16)(rdp.cmd0 >> 14)) & 0x03ff);
|
||||
int ul_t = (((wxUint16)(rdp.cmd0 >> 2 )) & 0x03ff);
|
||||
int lr_s = (((wxUint16)(rdp.cmd1 >> 14)) & 0x03ff);
|
||||
int lr_t = (((wxUint16)(rdp.cmd1 >> 2 )) & 0x03ff);
|
||||
int ul_s = (rdp.cmd0 >> 14) & 0x03ff;
|
||||
int ul_t = (rdp.cmd0 >> 2 ) & 0x03ff;
|
||||
int lr_s = (rdp.cmd1 >> 14) & 0x03ff;
|
||||
int lr_t = (rdp.cmd1 >> 2 ) & 0x03ff;
|
||||
|
||||
if (lr_s == 0 && ul_s == 0) //pokemon puzzle league set such tile size
|
||||
wrong_tile = tile;
|
||||
|
@ -2046,8 +2046,8 @@ static void rdp_loadblock()
|
|||
|
||||
// lr_s specifies number of 64-bit words to copy
|
||||
// 10.2 format
|
||||
wxUint16 ul_s = (wxUint16)(rdp.cmd0 >> 14) & 0x3FF;
|
||||
wxUint16 ul_t = (wxUint16)(rdp.cmd0 >> 2) & 0x3FF;
|
||||
wxUint16 ul_s = (wxUint16)((rdp.cmd0 >> 14) & 0x3FF);
|
||||
wxUint16 ul_t = (wxUint16)((rdp.cmd0 >> 2) & 0x3FF);
|
||||
|
||||
rdp.tiles[tile].ul_s = ul_s;
|
||||
rdp.tiles[tile].ul_t = ul_t;
|
||||
|
@ -2100,7 +2100,7 @@ static void rdp_loadblock()
|
|||
setTBufTex(rdp.tiles[tile].t_mem, cnt);
|
||||
}
|
||||
|
||||
void asmLoadTile(int src, int dst, int width, int height, int line, int off, int end, int swap)
|
||||
void asmLoadTile(int src, int dst, int width, int height, int line, int off, int end)
|
||||
{
|
||||
_asm {
|
||||
push ebx
|
||||
|
@ -2131,11 +2131,7 @@ loadtile_loop:
|
|||
|
||||
; (ecx set, restore edi)
|
||||
pop edi
|
||||
push ecx
|
||||
int 3
|
||||
mov ecx,[swap]
|
||||
call ecx
|
||||
pop ecx
|
||||
call SwapBlock32
|
||||
jmp loadtile_swap_end
|
||||
loadtile_no_swap:
|
||||
add sp,4 ; forget edi, we are already at the next position
|
||||
|
@ -2147,11 +2143,9 @@ loadtile_swap_end:
|
|||
jnz loadtile_loop
|
||||
|
||||
loadtile_end:
|
||||
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2243,10 +2237,9 @@ static void rdp_loadtile()
|
|||
return;
|
||||
|
||||
wxUint32 wid_64 = rdp.tiles[tile].line;
|
||||
wxUIntPtr SwapMethod = wxPtrToUInt(reinterpret_cast<void*>(SwapBlock32));
|
||||
wxUIntPtr dst = wxPtrToUInt(rdp.tmem) + (rdp.tiles[tile].t_mem<<3);
|
||||
wxUIntPtr end = wxPtrToUInt(rdp.tmem) + 4096 - (wid_64<<3);
|
||||
asmLoadTile(wxPtrToUInt(gfx.RDRAM), dst, wid_64, height, line_n, offs, end, SwapMethod);
|
||||
asmLoadTile(wxPtrToUInt(gfx.RDRAM), dst, wid_64, height, line_n, offs, end);
|
||||
}
|
||||
FRDP("loadtile: tile: %d, ul_s: %d, ul_t: %d, lr_s: %d, lr_t: %d\n", tile,
|
||||
ul_s, ul_t, lr_s, lr_t);
|
||||
|
|
Loading…
Reference in New Issue