Merge pull request #82 from lioncash/vertical-alignment
Fix some vertical alignments
This commit is contained in:
commit
6b5f6ddaa1
|
@ -399,7 +399,7 @@ void SConfig::LoadSettings()
|
|||
ini.Get("Core", "SlotB", (int*)&m_EXIDevice[1], EXIDEVICE_NONE);
|
||||
ini.Get("Core", "SerialPort1", (int*)&m_EXIDevice[2], EXIDEVICE_NONE);
|
||||
ini.Get("Core", "BBA_MAC", &m_bba_mac);
|
||||
ini.Get("Core", "TimeProfiling",&m_LocalCoreStartupParameter.bJITILTimeProfiling, false);
|
||||
ini.Get("Core", "TimeProfiling", &m_LocalCoreStartupParameter.bJITILTimeProfiling, false);
|
||||
ini.Get("Core", "OutputIR", &m_LocalCoreStartupParameter.bJITILOutputIR, false);
|
||||
for (int i = 0; i < MAX_SI_CHANNELS; ++i)
|
||||
{
|
||||
|
|
|
@ -40,13 +40,13 @@ const u16 idle_skip_sigs[NUM_IDLE_SIGS][MAX_IDLE_SIG_SIZE + 1] =
|
|||
0x03c0, 0x8000, // ANDCF $31, #0x8000
|
||||
0x029c, 0xFFFF, // JLNZ 0x0280
|
||||
0, 0 }, // RET
|
||||
{ 0x26fc, // lrs $AC0.M, @DMBH
|
||||
0x02a0, 0x8000, // andf $AC0.M, #0x8000
|
||||
0x029c, 0xFFFF, // jlnz 0x????
|
||||
{ 0x26fc, // LRS $AC0.M, @DMBH
|
||||
0x02a0, 0x8000, // ANDF $AC0.M, #0x8000
|
||||
0x029c, 0xFFFF, // JLNZ 0x????
|
||||
0, 0 },
|
||||
{ 0x27fc, // lrs $AC1.M, @DMBH
|
||||
0x03a0, 0x8000, // andf $AC1.M, #0x8000
|
||||
0x029c, 0xFFFF, // jlnz 0x????
|
||||
{ 0x27fc, // LRS $AC1.M, @DMBH
|
||||
0x03a0, 0x8000, // ANDF $AC1.M, #0x8000
|
||||
0x029c, 0xFFFF, // JLNZ 0x????
|
||||
0, 0 },
|
||||
// From Zelda:
|
||||
{ 0x00de, 0xFFFE, // LR $AC0.M, @CMBH
|
||||
|
@ -54,9 +54,9 @@ const u16 idle_skip_sigs[NUM_IDLE_SIGS][MAX_IDLE_SIG_SIZE + 1] =
|
|||
0x029c, 0xFFFF, // JLNZ 0x05cf
|
||||
0 },
|
||||
// From Zelda - experimental
|
||||
{ 0x00da, 0x0352, // lr $AX0.H, @0x0352
|
||||
0x8600, // tstaxh $AX0.H
|
||||
0x0295, 0xFFFF, // jz 0x????
|
||||
{ 0x00da, 0x0352, // LR $AX0.H, @0x0352
|
||||
0x8600, // TSTAXH $AX0.H
|
||||
0x0295, 0xFFFF, // JZ 0x????
|
||||
0, 0 }
|
||||
};
|
||||
|
||||
|
|
|
@ -41,10 +41,8 @@ public:
|
|||
|
||||
// CC Util
|
||||
void Update_SR_Register64(Gen::X64Reg val = Gen::EAX);
|
||||
void Update_SR_Register64_Carry(Gen::X64Reg val,
|
||||
Gen::X64Reg carry_ovfl);
|
||||
void Update_SR_Register64_Carry2(Gen::X64Reg val,
|
||||
Gen::X64Reg carry_ovfl);
|
||||
void Update_SR_Register64_Carry(Gen::X64Reg val, Gen::X64Reg carry_ovfl);
|
||||
void Update_SR_Register64_Carry2(Gen::X64Reg val, Gen::X64Reg carry_ovfl);
|
||||
void Update_SR_Register16(Gen::X64Reg val = Gen::EAX);
|
||||
void Update_SR_Register16_OverS32(Gen::X64Reg val = Gen::EAX);
|
||||
|
||||
|
|
|
@ -310,15 +310,10 @@ static void gdsp_ddma_out(u16 dsp_addr, u32 addr, u32 size)
|
|||
|
||||
static void gdsp_do_dma()
|
||||
{
|
||||
u16 ctl;
|
||||
u32 addr;
|
||||
u16 dsp_addr;
|
||||
u16 len;
|
||||
|
||||
addr = (g_dsp.ifx_regs[DSP_DSMAH] << 16) | g_dsp.ifx_regs[DSP_DSMAL];
|
||||
ctl = g_dsp.ifx_regs[DSP_DSCR];
|
||||
dsp_addr = g_dsp.ifx_regs[DSP_DSPA] * 2;
|
||||
len = g_dsp.ifx_regs[DSP_DSBL];
|
||||
u32 addr = (g_dsp.ifx_regs[DSP_DSMAH] << 16) | g_dsp.ifx_regs[DSP_DSMAL];
|
||||
u16 ctl = g_dsp.ifx_regs[DSP_DSCR];
|
||||
u16 dsp_addr = g_dsp.ifx_regs[DSP_DSPA] * 2;
|
||||
u16 len = g_dsp.ifx_regs[DSP_DSBL];
|
||||
|
||||
if (len > 0x4000)
|
||||
{
|
||||
|
|
|
@ -31,14 +31,12 @@ CDump::~CDump(void)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
CDump::GetNumberOfSteps(void)
|
||||
int CDump::GetNumberOfSteps(void)
|
||||
{
|
||||
return (int)(m_size / STRUCTUR_SIZE);
|
||||
}
|
||||
|
||||
u32
|
||||
CDump::GetGPR(int _step, int _gpr)
|
||||
u32 CDump::GetGPR(int _step, int _gpr)
|
||||
{
|
||||
u32 offset = _step * STRUCTUR_SIZE;
|
||||
|
||||
|
@ -48,8 +46,7 @@ CDump::GetGPR(int _step, int _gpr)
|
|||
return Read32(offset + OFFSET_GPR + (_gpr * 4));
|
||||
}
|
||||
|
||||
u32
|
||||
CDump::GetPC(int _step)
|
||||
u32 CDump::GetPC(int _step)
|
||||
{
|
||||
u32 offset = _step * STRUCTUR_SIZE;
|
||||
|
||||
|
@ -59,8 +56,7 @@ CDump::GetPC(int _step)
|
|||
return Read32(offset + OFFSET_PC);
|
||||
}
|
||||
|
||||
u32
|
||||
CDump::Read32(u32 _pos)
|
||||
u32 CDump::Read32(u32 _pos)
|
||||
{
|
||||
u32 result = (m_pData[_pos+0] << 24) |
|
||||
(m_pData[_pos+1] << 16) |
|
||||
|
|
|
@ -140,7 +140,6 @@ void PPCDebugInterface::toggleMemCheck(unsigned int address)
|
|||
MemCheck.Break = true;
|
||||
|
||||
PowerPC::memchecks.Add(MemCheck);
|
||||
|
||||
}
|
||||
else
|
||||
PowerPC::memchecks.Remove(address);
|
||||
|
|
|
@ -39,7 +39,7 @@ private:
|
|||
REGION_WRTC0 = 0x210000,
|
||||
REGION_WRTC1 = 0x210001,
|
||||
REGION_WRTC2 = 0x210008,
|
||||
REGION_EUART_UNK= 0x300000,
|
||||
REGION_EUART_UNK = 0x300000,
|
||||
REGION_EUART = 0x300001
|
||||
};
|
||||
|
||||
|
|
|
@ -60,8 +60,8 @@ int CSIDevice_DanceMat::RunBuffer(u8* _pBuffer, int _iLength)
|
|||
GetData(high, low);
|
||||
for (int i = 0; i < (_iLength - 1) / 2; i++)
|
||||
{
|
||||
_pBuffer[0 + i] = (high >> (i * 8)) & 0xff;
|
||||
_pBuffer[4 + i] = (low >> (i * 8)) & 0xff;
|
||||
_pBuffer[i + 0] = (high >> (i * 8)) & 0xff;
|
||||
_pBuffer[i + 4] = (low >> (i * 8)) & 0xff;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -60,8 +60,8 @@ int CSIDevice_GCController::RunBuffer(u8* _pBuffer, int _iLength)
|
|||
GetData(high, low);
|
||||
for (int i = 0; i < (_iLength - 1) / 2; i++)
|
||||
{
|
||||
_pBuffer[0 + i] = (high >> (i * 8)) & 0xff;
|
||||
_pBuffer[4 + i] = (low >> (i * 8)) & 0xff;
|
||||
_pBuffer[i + 0] = (high >> (i * 8)) & 0xff;
|
||||
_pBuffer[i + 4] = (low >> (i * 8)) & 0xff;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -119,13 +119,13 @@ void DoState(PointerWrap &p)
|
|||
void Init()
|
||||
{
|
||||
ctrl = CtrlRegister();
|
||||
ppc_msg =
|
||||
arm_msg =
|
||||
ppc_msg = 0;
|
||||
arm_msg = 0;
|
||||
|
||||
ppc_irq_flags =
|
||||
ppc_irq_masks =
|
||||
arm_irq_flags =
|
||||
arm_irq_masks =
|
||||
ppc_irq_flags = 0;
|
||||
ppc_irq_masks = 0;
|
||||
arm_irq_flags = 0;
|
||||
arm_irq_masks = 0;
|
||||
|
||||
sensorbar_power = 0;
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ inline void MatrixMultiply(Matrix &r, const Matrix &a, const Matrix &b)
|
|||
{
|
||||
for (int i=0; i<16; i++)
|
||||
r[i>>2][i&3]=0.0f;
|
||||
|
||||
for (int i=0; i<4; i++)
|
||||
for (int j=0; j<4; j++)
|
||||
for (int k=0; k<4; k++)
|
||||
|
|
|
@ -11,8 +11,8 @@ class IWII_IPC_HLE_Device;
|
|||
namespace WII_IPC_HLE_Interface
|
||||
{
|
||||
|
||||
#define IPC_FIRST_ID 0x00 // first IPC device ID
|
||||
#define IPC_MAX_FILES 0x10 // first IPC file ID
|
||||
#define IPC_FIRST_ID 0x00 // First IPC device ID
|
||||
#define IPC_MAX_FILES 0x10 // First IPC file ID
|
||||
|
||||
void EnqueReplyCallback(u64 userdata, int =0);
|
||||
|
||||
|
|
|
@ -536,7 +536,8 @@ libusb_device_handle * CWII_IPC_HLE_Device_hid::GetDeviceByDevNum(u32 devNum)
|
|||
static bool has_warned_about_drivers = false;
|
||||
#endif
|
||||
|
||||
for (ssize_t i = 0; i < cnt; i++) {
|
||||
for (ssize_t i = 0; i < cnt; i++)
|
||||
{
|
||||
libusb_device *device = list[i];
|
||||
struct libusb_device_descriptor desc;
|
||||
int dRet = libusb_get_device_descriptor (device, &desc);
|
||||
|
@ -610,10 +611,10 @@ libusb_device_handle * CWII_IPC_HLE_Device_hid::GetDeviceByDevNum(u32 devNum)
|
|||
|
||||
int CWII_IPC_HLE_Device_hid::GetAvaiableDevNum(u16 idVendor, u16 idProduct, u8 bus, u8 port, u16 check)
|
||||
{
|
||||
int i;
|
||||
int pos = -1;
|
||||
u64 unique_id = ((u64)idVendor << 32) | ((u64)idProduct << 16) | ((u64)bus << 8) | (u64)port;
|
||||
for (i=0; i<MAX_DEVICE_DEVNUM; i++)
|
||||
|
||||
for (int i=0; i<MAX_DEVICE_DEVNUM; i++)
|
||||
{
|
||||
u64 id = hidDeviceAliases[i] & HID_ID_MASK;
|
||||
if(id == 0 && pos == -1)
|
||||
|
@ -626,10 +627,12 @@ int CWII_IPC_HLE_Device_hid::GetAvaiableDevNum(u16 idVendor, u16 idProduct, u8 b
|
|||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
if(pos != -1)
|
||||
{
|
||||
hidDeviceAliases[pos] = unique_id | ((u64)check << 48);
|
||||
return pos;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -107,7 +107,8 @@ bool CWII_IPC_HLE_Device_sdio_slot0::IOCtl(u32 _CommandAddress)
|
|||
Memory::Memset(BufferOut, 0, BufferOutSize);
|
||||
|
||||
u32 ReturnValue = 0;
|
||||
switch (Cmd) {
|
||||
switch (Cmd)
|
||||
{
|
||||
case IOCTL_WRITEHCR:
|
||||
{
|
||||
u32 reg = Memory::Read_U32(BufferIn);
|
||||
|
|
|
@ -591,7 +591,8 @@ void CWII_IPC_HLE_WiiMote::SendConfigurationRequest(u16 scid, u16 MTU, u16 Flush
|
|||
|
||||
l2cap_cfg_req_cp* cr = (l2cap_cfg_req_cp*)&Buffer[Offset];
|
||||
cr->dcid = rChannel.DCID;
|
||||
cr->flags = 0; Offset += sizeof(l2cap_cfg_req_cp);
|
||||
cr->flags = 0;
|
||||
Offset += sizeof(l2cap_cfg_req_cp);
|
||||
|
||||
INFO_LOG(WII_IPC_WIIMOTE, "[L2CAP] SendConfigurationRequest");
|
||||
DEBUG_LOG(WII_IPC_WIIMOTE, " Dcid: 0x%04x", cr->dcid);
|
||||
|
@ -667,12 +668,12 @@ void CWII_IPC_HLE_WiiMote::SDPSendServiceSearchResponse(u16 cid, u16 Transaction
|
|||
pHeader->dcid = cid;
|
||||
|
||||
buffer.Write8 (Offset, 0x03); Offset++;
|
||||
buffer.Write16(Offset, TransactionID); Offset += 2; // transaction ID
|
||||
buffer.Write16(Offset, 0x0009); Offset += 2; // param length
|
||||
buffer.Write16(Offset, TransactionID); Offset += 2; // Transaction ID
|
||||
buffer.Write16(Offset, 0x0009); Offset += 2; // Param length
|
||||
buffer.Write16(Offset, 0x0001); Offset += 2; // TotalServiceRecordCount
|
||||
buffer.Write16(Offset, 0x0001); Offset += 2; // CurrentServiceRecordCount
|
||||
buffer.Write32(Offset, 0x10000); Offset += 4; // ServiceRecordHandleList[4]
|
||||
buffer.Write8(Offset, 0x00); Offset++; // no continuation state;
|
||||
buffer.Write8(Offset, 0x00); Offset++; // No continuation state;
|
||||
|
||||
|
||||
pHeader->length = (u16)(Offset - sizeof(l2cap_hdr_t));
|
||||
|
@ -759,7 +760,7 @@ void CWII_IPC_HLE_WiiMote::SDPSendServiceAttributeResponse(u16 cid, u16 Transact
|
|||
pHeader->dcid = cid;
|
||||
|
||||
buffer.Write8 (Offset, 0x05); Offset++;
|
||||
buffer.Write16(Offset, TransactionID); Offset += 2; // transaction ID
|
||||
buffer.Write16(Offset, TransactionID); Offset += 2; // Transaction ID
|
||||
|
||||
memcpy(buffer.GetPointer(Offset), pPacket, packetSize); Offset += packetSize;
|
||||
|
||||
|
|
|
@ -490,7 +490,6 @@ void WiiSocket::update(bool read, bool write, bool except)
|
|||
BufferOutSize2 ? &addrlen : 0);
|
||||
ReturnValue = WiiSockMan::getNetErrorCode(ret, BufferOutSize2 ? "SO_RECVFROM" : "SO_RECV", true);
|
||||
|
||||
|
||||
INFO_LOG(WII_IPC_NET, "%s(%d, %p) Socket: %08X, Flags: %08X, "
|
||||
"BufferIn: (%08x, %i), BufferIn2: (%08x, %i), "
|
||||
"BufferOut: (%08x, %i), BufferOut2: (%08x, %i)",
|
||||
|
@ -510,7 +509,6 @@ void WiiSocket::update(bool read, bool write, bool except)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( nonBlock || forceNonBlock
|
||||
|
|
|
@ -9,37 +9,56 @@
|
|||
#if 0
|
||||
// 0x00 (checked)
|
||||
u8 ServiceRecordHandle[] = { 0x0a, 0x00, 0x01, 0x00, 0x00 };
|
||||
|
||||
// 0x01 (checked)
|
||||
u8 SrvClassIDList[] = { 0x35, 0x03,
|
||||
0x19, 0x11, 0x24 };
|
||||
u8 SrvClassIDList[] = {
|
||||
0x35, 0x03,
|
||||
0x19, 0x11, 0x24
|
||||
};
|
||||
|
||||
// 0x04 (checked)
|
||||
u8 ProtocolDescriptorList[] = { 0x35, 0x0D,
|
||||
u8 ProtocolDescriptorList[] = {
|
||||
0x35, 0x0D,
|
||||
0x35, 0x06,
|
||||
0x19, 0x01, 0x00, // Element 0
|
||||
0x09, 0x00, 0x11, // Element 1
|
||||
0x35, 0x03,
|
||||
0x19, 0x00, 0x11}; // Element 0
|
||||
0x19, 0x00, 0x11 // Element 0
|
||||
};
|
||||
|
||||
// 0x5 (checked)
|
||||
u8 BrowseGroupList[] = { 0x35, 0x03,
|
||||
0x19, 0x10, 0x02 };
|
||||
u8 BrowseGroupList[] = {
|
||||
0x35, 0x03,
|
||||
0x19, 0x10, 0x02
|
||||
};
|
||||
|
||||
// 0x6 (checked)
|
||||
u8 LanguageBaseAttributeIDList[] = { 0x35, 0x09,
|
||||
u8 LanguageBaseAttributeIDList[] = {
|
||||
0x35, 0x09,
|
||||
0x09, 0x65, 0x6e,
|
||||
0x09, 0x00, 0x6a,
|
||||
0x09, 0x01, 0x00 };
|
||||
0x09, 0x01, 0x00
|
||||
};
|
||||
|
||||
// 0x09 (checked)
|
||||
u8 BluetoothProfileDescriptorList[] = { 0x35, 0x08,
|
||||
u8 BluetoothProfileDescriptorList[] = {
|
||||
0x35, 0x08,
|
||||
0x35, 0x06,
|
||||
0x19, 0x11, 0x24,
|
||||
0x09, 0x01, 0x00 };
|
||||
0x09, 0x01, 0x00
|
||||
};
|
||||
|
||||
// 0x0D (checked)
|
||||
u8 AdditionalProtocolDescriptorLists[] = { 0x35, 0x0F,
|
||||
u8 AdditionalProtocolDescriptorLists[] = {
|
||||
0x35, 0x0F,
|
||||
0x35, 0x0D,
|
||||
0x35, 0x06,
|
||||
0x19, 0x01, 0x00,
|
||||
0x09, 0x00, 0x13,
|
||||
0x35, 0x03,
|
||||
0x19, 0x00, 0x11 };
|
||||
0x19, 0x00, 0x11
|
||||
};
|
||||
|
||||
// 0x100
|
||||
u8 ServiceName[] = { 0x25, 0x13, 'N','i','n','t','e','n','d','o',' ','R','V','L','-','C','N','T','-','0','1' };
|
||||
// 0x101
|
||||
|
@ -61,7 +80,8 @@ u8 HIDVirtualCable[] = { 0x09, 0x00, 0x00 };
|
|||
u8 HIDReconnectInitiate[] = { 0x09, 0x00, 0x01 };
|
||||
|
||||
// 0x206
|
||||
u8 HIDDescriptorList[] = { 0x35, 0xDF,
|
||||
u8 HIDDescriptorList[] = {
|
||||
0x35, 0xDF,
|
||||
0x35, 0xDD,
|
||||
0x08, 0x22, // Element 0
|
||||
0x25, 0xD9, // hmm... <- 0x25 is a string but there is Data
|
||||
|
@ -94,14 +114,16 @@ u8 HIDDescriptorList[] = { 0x35, 0xDF,
|
|||
0x85, 0x3d, 0x95, 0x15, 0x09, 0x01, 0x81, 0x00,
|
||||
0x85, 0x3e, 0x95, 0x15, 0x09, 0x01, 0x81, 0x00,
|
||||
0x85, 0x3f, 0x95, 0x15, 0x09, 0x01, 0x81, 0x00,
|
||||
0xc0 }; // end tag
|
||||
|
||||
0xc0 // end tag
|
||||
};
|
||||
|
||||
// 0x207
|
||||
u8 HIDLANGIDBaseList[] = { 0x35, 0x08,
|
||||
u8 HIDLANGIDBaseList[] = {
|
||||
0x35, 0x08,
|
||||
0x35, 0x06,
|
||||
0x09, 0x04, 0x09,
|
||||
0x09, 0x01, 0x00 };
|
||||
0x09, 0x01, 0x00
|
||||
};
|
||||
|
||||
// 0x208
|
||||
u8 HIDSDPDisable[] = { 0x28, 0x00 };
|
||||
|
@ -143,7 +165,6 @@ static u8 packet2[] = {
|
|||
};
|
||||
|
||||
static u8 packet3[] = {
|
||||
|
||||
0x00, 0x7b, 0x00, 0x76, 0x85, 0x13, 0x95, 0x01, 0x09, 0x01, 0x91, 0x00, 0x85,
|
||||
0x14, 0x95, 0x01, 0x09, 0x01, 0x91, 0x00, 0x85, 0x15, 0x95, 0x01, 0x09, 0x01, 0x91, 0x00, 0x85,
|
||||
0x16, 0x95, 0x15, 0x09, 0x01, 0x91, 0x00, 0x85, 0x17, 0x95, 0x06, 0x09, 0x01, 0x91, 0x00, 0x85,
|
||||
|
|
|
@ -356,9 +356,9 @@ void CVolumeDirectory::BuildFST()
|
|||
m_dataStartAddress = ROUND_UP(FST_ADDRESS + m_fstSize, 0x8000ull);
|
||||
u64 curDataAddress = m_dataStartAddress;
|
||||
|
||||
u32 fstOffset = 0; // offset within FST data
|
||||
u32 nameOffset = 0; // offset within name table
|
||||
u32 rootOffset = 0; // offset of root of FST
|
||||
u32 fstOffset = 0; // Offset within FST data
|
||||
u32 nameOffset = 0; // Offset within name table
|
||||
u32 rootOffset = 0; // Offset of root of FST
|
||||
|
||||
// write root entry
|
||||
WriteEntryData(fstOffset, DIRECTORY_ENTRY, 0, 0, totalEntries);
|
||||
|
|
|
@ -27,6 +27,7 @@ private:
|
|||
const IOHIDDeviceRef m_device;
|
||||
std::string m_name;
|
||||
};
|
||||
|
||||
class Cursor : public Input
|
||||
{
|
||||
public:
|
||||
|
@ -39,6 +40,7 @@ private:
|
|||
const u8 m_index;
|
||||
const bool m_positive;
|
||||
};
|
||||
|
||||
class Button : public Input
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -48,9 +48,7 @@ namespace XInput2
|
|||
// This function will add zero or more KeyboardMouse objects to devices.
|
||||
void Init(std::vector<Core::Device*>& devices, void* const hwnd)
|
||||
{
|
||||
Display* dpy;
|
||||
|
||||
dpy = XOpenDisplay(NULL);
|
||||
Display* dpy = XOpenDisplay(NULL);
|
||||
|
||||
// xi_opcode is important; it will be used to identify XInput events by
|
||||
// the polling loop in UpdateInput.
|
||||
|
@ -94,7 +92,6 @@ void Init(std::vector<Core::Device*>& devices, void* const hwnd)
|
|||
void KeyboardMouse::SelectEventsForDevice(Window window, XIEventMask *mask, int deviceid)
|
||||
{
|
||||
// Set the event mask for the master device.
|
||||
|
||||
mask->deviceid = deviceid;
|
||||
XISelectEvents(m_display, window, mask, 1);
|
||||
|
||||
|
|
|
@ -1313,7 +1313,8 @@ void Renderer::SetSamplerState(int stage, int texindex)
|
|||
|
||||
unsigned int mip = d3dMipFilters[tm0.min_filter & 3];
|
||||
|
||||
if (texindex) stage += 4;
|
||||
if (texindex)
|
||||
stage += 4;
|
||||
|
||||
if (g_ActiveConfig.bForceFiltering)
|
||||
{
|
||||
|
|
|
@ -595,10 +595,12 @@ void Tev::Draw()
|
|||
#if ALLOW_TEV_DUMPS
|
||||
if (g_SWVideoConfig.bDumpTevStages)
|
||||
{
|
||||
u8 stage[4] = { IndirectTex[stageNum][TextureSampler::ALP_SMP],
|
||||
u8 stage[4] = {
|
||||
IndirectTex[stageNum][TextureSampler::ALP_SMP],
|
||||
IndirectTex[stageNum][TextureSampler::BLU_SMP],
|
||||
IndirectTex[stageNum][TextureSampler::GRN_SMP],
|
||||
255};
|
||||
255
|
||||
};
|
||||
DebugUtil::DrawTempBuffer(stage, INDIRECT + stageNum);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue