mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
Rename scale_something to scale_invert. Plus, sneak in a tiny Thread.h change.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3845 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
fd70f99f04
commit
6f28539ccc
@ -182,7 +182,7 @@ void SleepCurrentThread(int ms);
|
|||||||
inline void YieldCPU()
|
inline void YieldCPU()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
YieldProcessor();
|
SwitchToThread();
|
||||||
#elif defined _POSIX_THREADS
|
#elif defined _POSIX_THREADS
|
||||||
sched_yield();
|
sched_yield();
|
||||||
#endif
|
#endif
|
||||||
|
@ -814,7 +814,7 @@ union UPE_Copy
|
|||||||
unsigned target_pixel_format : 4; // realformat is (fmt/2)+((fmt&1)*8).... for some reason the msb is the lsb
|
unsigned target_pixel_format : 4; // realformat is (fmt/2)+((fmt&1)*8).... for some reason the msb is the lsb
|
||||||
unsigned gamma : 2;
|
unsigned gamma : 2;
|
||||||
unsigned half_scale : 1; // real size should be 2x smaller (run a gauss filter?)
|
unsigned half_scale : 1; // real size should be 2x smaller (run a gauss filter?)
|
||||||
unsigned scale_something : 1;
|
unsigned scale_invert : 1;
|
||||||
unsigned clear : 1;
|
unsigned clear : 1;
|
||||||
unsigned frame_to_field : 2;
|
unsigned frame_to_field : 2;
|
||||||
unsigned copy_to_xfb : 1;
|
unsigned copy_to_xfb : 1;
|
||||||
|
@ -208,9 +208,7 @@ void BPWritten(const Bypass& bp)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
float yScale;
|
float yScale;
|
||||||
// PE_copy.scale_something may indicate that yScale is inverted.
|
if (PE_copy.scale_invert)
|
||||||
// Not 100% sure if that's true, but this seems to fix SMG in PAL50 mode.
|
|
||||||
if (PE_copy.scale_something)
|
|
||||||
yScale = 256.0f / (float)bpmem.dispcopyyscale;
|
yScale = 256.0f / (float)bpmem.dispcopyyscale;
|
||||||
else
|
else
|
||||||
yScale = (float)bpmem.dispcopyyscale / 256.0f;
|
yScale = (float)bpmem.dispcopyyscale / 256.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user