mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Merge msvc10 into cursors2
This commit is contained in:
@ -55,7 +55,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "hsWindows.h"
|
||||
|
||||
#include <ddraw.h>
|
||||
#include <d3d.h>
|
||||
#include <d3d9.h>
|
||||
|
||||
#include "hsTypes.h"
|
||||
#include "hsDXTDirectXCodec.h"
|
||||
|
@ -336,22 +336,22 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
// Choose an optimal rendering function
|
||||
fRenderInfo.fRenderFunc = nil;
|
||||
if( justCalc )
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
else if( mip->GetPixelSize() == 32 )
|
||||
{
|
||||
if( fBPP == 1 )
|
||||
fRenderInfo.fRenderFunc = ( fRenderInfo.fFlags & kRenderScaleAA ) ? IRenderChar1To32AA : IRenderChar1To32;
|
||||
fRenderInfo.fRenderFunc = ( fRenderInfo.fFlags & kRenderScaleAA ) ? &plFont::IRenderChar1To32AA : &plFont::IRenderChar1To32;
|
||||
else if( fBPP == 8 )
|
||||
{
|
||||
if( fRenderInfo.fFlags & kRenderIntoAlpha )
|
||||
{
|
||||
if( ( fRenderInfo.fColor & 0xff000000 ) != 0xff000000 )
|
||||
fRenderInfo.fRenderFunc = IRenderChar8To32Alpha;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderChar8To32Alpha;
|
||||
else
|
||||
fRenderInfo.fRenderFunc = IRenderChar8To32FullAlpha;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderChar8To32FullAlpha;
|
||||
}
|
||||
else
|
||||
fRenderInfo.fRenderFunc = IRenderChar8To32;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderChar8To32;
|
||||
}
|
||||
}
|
||||
|
||||
@ -537,7 +537,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
|
||||
fRenderInfo.fX = 0;
|
||||
CharRenderFunc oldFunc = fRenderInfo.fRenderFunc;
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
|
||||
IRenderLoop( string, lastWord );
|
||||
|
||||
@ -559,7 +559,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
|
||||
fRenderInfo.fX = 0;
|
||||
CharRenderFunc oldFunc = fRenderInfo.fRenderFunc;
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
|
||||
IRenderLoop( string, lastWord );
|
||||
|
||||
@ -658,7 +658,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
{
|
||||
// Advance left past any clipping area
|
||||
CharRenderFunc oldFunc = fRenderInfo.fRenderFunc;
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
while( fRenderInfo.fX < fRenderInfo.fClipRect.fX && *string != 0 )
|
||||
{
|
||||
IRenderLoop( string, 1 );
|
||||
|
@ -108,7 +108,7 @@ void plLODMipmap::SetLOD(int lod)
|
||||
{
|
||||
hsAssert(fBase, "UnInitialized");
|
||||
|
||||
const kMaxLOD = 5;
|
||||
const int kMaxLOD = 5;
|
||||
if( lod > kMaxLOD )
|
||||
lod = kMaxLOD;
|
||||
if( lod >= fBase->GetNumLevels() )
|
||||
|
@ -207,7 +207,7 @@ UInt32 plMipmap::Read( hsStream *s )
|
||||
|
||||
// Decide to clamp if we were told to
|
||||
int clampBy = fGlobalNumLevelsToChop;
|
||||
const kMaxSkipLevels = 1;
|
||||
const int kMaxSkipLevels = 1;
|
||||
if( clampBy > kMaxSkipLevels )
|
||||
clampBy = kMaxSkipLevels;
|
||||
if( fFlags & kNoMaxSize )
|
||||
|
Reference in New Issue
Block a user