mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 14:58:41 -05:00
Remove tabs in all files except in skyeye imports and in generated GL code
This commit is contained in:
@ -318,9 +318,9 @@ void DumpTexture(const Pica::Regs::TextureConfig& texture_config, u8* data) {
|
||||
return;
|
||||
|
||||
#ifndef HAVE_PNG
|
||||
return;
|
||||
return;
|
||||
#else
|
||||
if (!data)
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
// Write data to file
|
||||
|
@ -41,7 +41,7 @@ void DumpShader(const u32* binary_data, u32 binary_size, const u32* swizzle_data
|
||||
// Utility class to log Pica commands.
|
||||
struct PicaTrace {
|
||||
struct Write : public std::pair<u32,u32> {
|
||||
Write(u32 id, u32 value) : std::pair<u32,u32>(id, value) {}
|
||||
Write(u32 id, u32 value) : std::pair<u32,u32>(id, value) {}
|
||||
|
||||
u32& Id() { return first; }
|
||||
const u32& Id() const { return first; }
|
||||
|
@ -239,7 +239,7 @@ MathUtil::Rectangle<unsigned> RendererOpenGL::GetViewportExtent() {
|
||||
|
||||
MathUtil::Rectangle<unsigned> viewport_extent;
|
||||
if (window_aspect_ratio > emulation_aspect_ratio) {
|
||||
// Window is narrower than the emulation content => apply borders to the top and bottom
|
||||
// Window is narrower than the emulation content => apply borders to the top and bottom
|
||||
unsigned viewport_height = emulation_aspect_ratio * framebuffer_width;
|
||||
viewport_extent.left = 0;
|
||||
viewport_extent.top = (framebuffer_height - viewport_height) / 2;
|
||||
|
@ -12,24 +12,24 @@ namespace FormatPrecision {
|
||||
|
||||
/// Adjust RGBA8 color with RGBA6 precision
|
||||
static inline u32 rgba8_with_rgba6(u32 src) {
|
||||
u32 color = src;
|
||||
color &= 0xFCFCFCFC;
|
||||
color |= (color >> 6) & 0x03030303;
|
||||
return color;
|
||||
u32 color = src;
|
||||
color &= 0xFCFCFCFC;
|
||||
color |= (color >> 6) & 0x03030303;
|
||||
return color;
|
||||
}
|
||||
|
||||
/// Adjust RGBA8 color with RGB565 precision
|
||||
static inline u32 rgba8_with_rgb565(u32 src) {
|
||||
u32 color = (src & 0xF8FCF8);
|
||||
color |= (color >> 5) & 0x070007;
|
||||
color |= (color >> 6) & 0x000300;
|
||||
color |= 0xFF000000;
|
||||
return color;
|
||||
u32 color = (src & 0xF8FCF8);
|
||||
color |= (color >> 5) & 0x070007;
|
||||
color |= (color >> 6) & 0x000300;
|
||||
color |= 0xFF000000;
|
||||
return color;
|
||||
}
|
||||
|
||||
/// Adjust Z24 depth value with Z16 precision
|
||||
static inline u32 z24_with_z16(u32 src) {
|
||||
return (src & 0xFFFF00) | (src >> 16);
|
||||
return (src & 0xFFFF00) | (src >> 16);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user