Skip to content

Commit

Permalink
GRAPHICS: Use constants for horizontal alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
farmboy0 committed Nov 24, 2017
1 parent ffecee6 commit cbe383e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/graphics/aurora/highlightabletext.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class HighlightableText: public Text, public Highlightable {

public:
HighlightableText(const FontHandle &font, const Common::UString &str,
float r = 1.0f, float g = 1.0f, float b = 1.0f, float a = 1.0f, float halign = 0.0f);
float r = 1.0f, float g = 1.0f, float b = 1.0f, float a = 1.0f, float halign = kHAlignLeft);
~HighlightableText();

void render(RenderPass pass);
Expand Down
3 changes: 2 additions & 1 deletion src/graphics/aurora/text.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <src/graphics/guielement.h>

#include "src/graphics/aurora/fonthandle.h"
#include "src/graphics/aurora/types.h"

namespace Graphics {

Expand All @@ -41,7 +42,7 @@ namespace Aurora {
class Text : public GUIElement {
public:
Text(const FontHandle &font, const Common::UString &str,
float r = 1.0f, float g = 1.0f, float b = 1.0f, float a = 1.0f, float halign = 0.0f);
float r = 1.0f, float g = 1.0f, float b = 1.0f, float a = 1.0f, float halign = kHAlignLeft);
~Text();

const Common::UString &get() const;
Expand Down

0 comments on commit cbe383e

Please sign in to comment.