Fix indentation
This commit is contained in:
parent
c6e2449bff
commit
4d1face540
|
@ -375,7 +375,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// Map 8 bit reads (not writes) to 16 bit reads.
|
// Map 8 bit reads (not writes) to 16 bit reads.
|
||||||
for (int i = 0; i < 0x1000; i += 2)
|
for (int i = 0; i < 0x1000; i += 2)
|
||||||
{
|
{
|
||||||
mmio->Register(base | i,
|
mmio->Register(base | i,
|
||||||
|
@ -388,14 +388,14 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Map 32 bit reads and writes to 16 bit reads and writes.
|
// Map 32 bit reads and writes to 16 bit reads and writes.
|
||||||
for (int i = 0; i < 0x1000; i += 4)
|
for (int i = 0; i < 0x1000; i += 4)
|
||||||
{
|
{
|
||||||
mmio->Register(base | i,
|
mmio->Register(base | i,
|
||||||
MMIO::ReadToSmaller<u32>(mmio, base | i, base | (i + 2)),
|
MMIO::ReadToSmaller<u32>(mmio, base | i, base | (i + 2)),
|
||||||
MMIO::WriteToSmaller<u32>(mmio, base | i, base | (i + 2))
|
MMIO::WriteToSmaller<u32>(mmio, base | i, base | (i + 2))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetRegionReg(char region)
|
void SetRegionReg(char region)
|
||||||
|
|
|
@ -272,7 +272,7 @@ void DMainWindow::UpdateIcons()
|
||||||
// Help menu
|
// Help menu
|
||||||
void DMainWindow::OnOpenWebsite()
|
void DMainWindow::OnOpenWebsite()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/")));
|
QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/")));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DMainWindow::OnOpenDocs()
|
void DMainWindow::OnOpenDocs()
|
||||||
|
|
|
@ -21,8 +21,8 @@ static PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI = nullptr;
|
||||||
static bool s_glxError;
|
static bool s_glxError;
|
||||||
static int ctxErrorHandler(Display *dpy, XErrorEvent *ev)
|
static int ctxErrorHandler(Display *dpy, XErrorEvent *ev)
|
||||||
{
|
{
|
||||||
s_glxError = true;
|
s_glxError = true;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cInterfaceGLX::SwapInterval(int Interval)
|
void cInterfaceGLX::SwapInterval(int Interval)
|
||||||
|
|
|
@ -29,5 +29,5 @@ void DoCPState(PointerWrap& p)
|
||||||
|
|
||||||
void CopyPreprocessCPStateFromMain()
|
void CopyPreprocessCPStateFromMain()
|
||||||
{
|
{
|
||||||
memcpy(&g_preprocess_cp_state, &g_main_cp_state, sizeof(CPState));
|
memcpy(&g_preprocess_cp_state, &g_main_cp_state, sizeof(CPState));
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,13 +237,13 @@ class VertexLoaderBase;
|
||||||
// STATE_TO_SAVE
|
// STATE_TO_SAVE
|
||||||
struct CPState final
|
struct CPState final
|
||||||
{
|
{
|
||||||
u32 array_bases[16];
|
u32 array_bases[16];
|
||||||
u32 array_strides[16];
|
u32 array_strides[16];
|
||||||
TMatrixIndexA matrix_index_a;
|
TMatrixIndexA matrix_index_a;
|
||||||
TMatrixIndexB matrix_index_b;
|
TMatrixIndexB matrix_index_b;
|
||||||
TVtxDesc vtx_desc;
|
TVtxDesc vtx_desc;
|
||||||
// Most games only use the first VtxAttr and simply reconfigure it all the time as needed.
|
// Most games only use the first VtxAttr and simply reconfigure it all the time as needed.
|
||||||
VAT vtx_attr[8];
|
VAT vtx_attr[8];
|
||||||
|
|
||||||
// Attributes that actually belong to VertexLoaderManager:
|
// Attributes that actually belong to VertexLoaderManager:
|
||||||
BitSet32 attr_dirty;
|
BitSet32 attr_dirty;
|
||||||
|
|
|
@ -226,8 +226,8 @@ void PixelShaderManager::SetZTextureTypeChanged()
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PixelShaderManager::SetTexCoordChanged(u8 texmapid)
|
void PixelShaderManager::SetTexCoordChanged(u8 texmapid)
|
||||||
|
|
|
@ -144,7 +144,7 @@ void TextureCache::Cleanup()
|
||||||
while (iter != tcend)
|
while (iter != tcend)
|
||||||
{
|
{
|
||||||
if (frameCount > TEXTURE_KILL_THRESHOLD + iter->second->frameCount &&
|
if (frameCount > TEXTURE_KILL_THRESHOLD + iter->second->frameCount &&
|
||||||
// EFB copies living on the host GPU are unrecoverable and thus shouldn't be deleted
|
// EFB copies living on the host GPU are unrecoverable and thus shouldn't be deleted
|
||||||
!iter->second->IsEfbCopy())
|
!iter->second->IsEfbCopy())
|
||||||
{
|
{
|
||||||
delete iter->second;
|
delete iter->second;
|
||||||
|
|
Loading…
Reference in New Issue