2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Various Invoke imps

This commit is contained in:
Jack Andersen
2016-03-19 20:37:08 -10:00
parent 4960f683fd
commit 18e0e208a7
13 changed files with 270 additions and 64 deletions

View File

@@ -90,7 +90,7 @@ void CRasterFont::SinglePassDrawString(const CDrawStringOptions& opts, int x, in
const CGlyph* glyph = GetGlyph(*chr);
if (glyph)
{
if (opts.x0_ == 0)
if (opts.x0_direction == ETextDirection::Horizontal)
{
x += glyph->GetA();
@@ -123,7 +123,7 @@ void CRasterFont::SinglePassDrawString(const CDrawStringOptions& opts, int x, in
void CRasterFont::DrawSpace(const CDrawStringOptions& opts, int x, int y, int& xout, int& yout, int len) const
{
if (opts.x0_ != 0)
if (opts.x0_direction != ETextDirection::Horizontal)
return;
xout = x + len;
@@ -166,7 +166,7 @@ void CRasterFont::GetSize(const CDrawStringOptions& opts, int& width, int& heigh
if (glyph)
{
if (opts.x0_ == 0)
if (opts.x0_direction == ETextDirection::Horizontal)
{
int advance = 0;
if (prevGlyph)