From 2bfa5ca4ad853f5f1dcf231da5c0cd93b5cea015 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Thu, 5 Jun 2014 15:02:30 -0500 Subject: [PATCH] Changed default help pos to not use a hard-coded pixel value. Added mention of the default (0.012 0.9515) to THEMES.md. --- THEMES.md | 2 +- src/HelpStyle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/THEMES.md b/THEMES.md index 398c643de..eacbfd3c4 100644 --- a/THEMES.md +++ b/THEMES.md @@ -467,7 +467,7 @@ EmulationStation borrows the concept of "nine patches" from Android (or "9-Slice #### helpsystem -* `pos` - type: NORMALIZED_PAIR. +* `pos` - type: NORMALIZED_PAIR. Default is "0.012 0.9515" * `textColor` - type: COLOR. Default is 777777FF. * `iconColor` - type: COLOR. Default is 777777FF. * `fontPath` - type: PATH. diff --git a/src/HelpStyle.cpp b/src/HelpStyle.cpp index 184bc7bca..59a329d7c 100644 --- a/src/HelpStyle.cpp +++ b/src/HelpStyle.cpp @@ -5,7 +5,7 @@ HelpStyle::HelpStyle() { - position = Eigen::Vector2f(12.0f, Renderer::getScreenHeight() * 0.9515f); + position = Eigen::Vector2f(Renderer::getScreenWidth() * 0.012f, Renderer::getScreenHeight() * 0.9515f); iconColor = 0x777777FF; textColor = 0x777777FF;