зеркало из https://github.com/mozilla/pjs.git
nsGraphicState->mTMatrix is now an object rather than a pointer. added #include "nsFontMetricsMac.h", and "nsGraphicState.h".
This commit is contained in:
Родитель
c4b98608e5
Коммит
45ee39f9a4
|
@ -20,6 +20,8 @@
|
||||||
#include "nsUnicodeFallbackCache.h"
|
#include "nsUnicodeFallbackCache.h"
|
||||||
#include "nsDrawingSurfaceMac.h"
|
#include "nsDrawingSurfaceMac.h"
|
||||||
#include "nsTransform2D.h"
|
#include "nsTransform2D.h"
|
||||||
|
#include "nsFontMetricsMac.h"
|
||||||
|
#include "nsGraphicState.h"
|
||||||
|
|
||||||
#define BAD_FONT_NUM -1
|
#define BAD_FONT_NUM -1
|
||||||
#define BAD_SCRIPT 0x7F
|
#define BAD_SCRIPT 0x7F
|
||||||
|
@ -545,7 +547,7 @@ NS_IMETHODIMP nsUnicodeRenderingToolkit :: DrawString(const PRUnichar *aString,
|
||||||
mGS->mFontMetrics->GetMaxAscent(ascent);
|
mGS->mFontMetrics->GetMaxAscent(ascent);
|
||||||
y += ascent;
|
y += ascent;
|
||||||
|
|
||||||
mGS->mTMatrix->TransformCoord(&x,&y);
|
mGS->mTMatrix.TransformCoord(&x,&y);
|
||||||
|
|
||||||
PRUint32 i;
|
PRUint32 i;
|
||||||
PRInt32 currentX = x;
|
PRInt32 currentX = x;
|
||||||
|
@ -557,7 +559,7 @@ NS_IMETHODIMP nsUnicodeRenderingToolkit :: DrawString(const PRUnichar *aString,
|
||||||
int* spacing = (aLength <= STACK_TREASHOLD ? buffer : new int[aLength]);
|
int* spacing = (aLength <= STACK_TREASHOLD ? buffer : new int[aLength]);
|
||||||
if (spacing)
|
if (spacing)
|
||||||
{
|
{
|
||||||
mGS->mTMatrix->ScaleXCoords(aSpacing, aLength, spacing);
|
mGS->mTMatrix.ScaleXCoords(aSpacing, aLength, spacing);
|
||||||
for(i =0; i < aLength; i++)
|
for(i =0; i < aLength; i++)
|
||||||
{
|
{
|
||||||
short curFontNum = fontmap->GetFontID(aString[i]);
|
short curFontNum = fontmap->GetFontID(aString[i]);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче