Fix custom select screen

This commit is contained in:
drdev
2014-05-03 15:11:26 +00:00
parent b9dafed0ea
commit 1c9edb4380

View File

@@ -243,11 +243,17 @@ public class SettingsScreen extends FScreen {
@Override @Override
public void drawValue(Graphics g, String value, FSkinFont font, FSkinColor foreColor, boolean pressed, float x, float y, float w, float h) { public void drawValue(Graphics g, String value, FSkinFont font, FSkinColor foreColor, boolean pressed, float x, float y, float w, float h) {
float offset = w * INSETS_FACTOR - FList.PADDING; //increase padding for settings items
x += offset;
y += offset;
w -= 2 * offset;
h -= 2 * offset;
g.drawText(value, font, foreColor, x, y, w, h, false, HAlignment.LEFT, true); g.drawText(value, font, foreColor, x, y, w, h, false, HAlignment.LEFT, true);
float radius = h / 5; float radius = h / 3;
x += w - radius; x += w - radius;
y = h / 2; y += h / 2;
g.drawCircle(1, DESC_COLOR, x, y, radius); g.drawCircle(1, DESC_COLOR, x, y, radius);
if (value.equals(currentValue)) { if (value.equals(currentValue)) {
g.fillCircle(foreColor, x, y, radius / 2); g.fillCircle(foreColor, x, y, radius / 2);