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:
Nolan Check 2009-07-19 08:24:30 +00:00
parent fd70f99f04
commit 6f28539ccc
3 changed files with 3 additions and 5 deletions

View File

@ -182,7 +182,7 @@ void SleepCurrentThread(int ms);
inline void YieldCPU()
{
#ifdef _WIN32
YieldProcessor();
SwitchToThread();
#elif defined _POSIX_THREADS
sched_yield();
#endif

View File

@ -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 gamma : 2;
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 frame_to_field : 2;
unsigned copy_to_xfb : 1;

View File

@ -208,9 +208,7 @@ void BPWritten(const Bypass& bp)
#endif
float yScale;
// PE_copy.scale_something may indicate that yScale is inverted.
// Not 100% sure if that's true, but this seems to fix SMG in PAL50 mode.
if (PE_copy.scale_something)
if (PE_copy.scale_invert)
yScale = 256.0f / (float)bpmem.dispcopyyscale;
else
yScale = (float)bpmem.dispcopyyscale / 256.0f;