From 0e854500b553f2491eeba123d34c9e7568d9f6a9 Mon Sep 17 00:00:00 2001 From: Kevin Anthoney Date: Sat, 19 Jul 2014 11:40:49 +0100 Subject: [PATCH] Positional teaking --- src/Core/Entities/PlayerEntityControls.m | 2 +- src/Core/GuiDisplayGen.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/Entities/PlayerEntityControls.m b/src/Core/Entities/PlayerEntityControls.m index 74fd52b4..5c1f33cb 100644 --- a/src/Core/Entities/PlayerEntityControls.m +++ b/src/Core/Entities/PlayerEntityControls.m @@ -1699,7 +1699,7 @@ static NSTimeInterval time_last_frame; NSPoint maus = [gameView virtualJoystickPosition]; if (gui_screen == GUI_SCREEN_SHORT_RANGE_CHART) { - double vadjust = 71; + double vadjust = 80; double hscale = MAIN_GUI_PIXEL_WIDTH / (64.0 * chart_zoom); double vscale = MAIN_GUI_PIXEL_HEIGHT / (128.0 * chart_zoom); NSPoint centre = [self chart_centre_for_zoom: chart_zoom]; diff --git a/src/Core/GuiDisplayGen.m b/src/Core/GuiDisplayGen.m index 3bc1ae55..7c48fb09 100644 --- a/src/Core/GuiDisplayGen.m +++ b/src/Core/GuiDisplayGen.m @@ -1548,11 +1548,11 @@ static OOTextureSprite *NewTextureSpriteWithDescriptor(NSDictionary *descriptor) Random_Seed g_seed; double hcenter = size_in_pixels.width/2.0; - double vcenter = 140.0f; double hscale = size_in_pixels.width / (CHART_WIDTH_AT_MAX_ZOOM*zoom); double vscale = -size_in_pixels.height / (2*CHART_HEIGHT_AT_MAX_ZOOM*zoom); + double vcenter = 10*MAIN_GUI_ROW_HEIGHT; double hoffset = hcenter - chart_centre_coordinates.x*hscale; - double voffset = size_in_pixels.height - pixel_title_size.height - 5 - vcenter - chart_centre_coordinates.y*vscale; + double voffset = size_in_pixels.height - vcenter - chart_centre_coordinates.y*vscale; int i; double distance = 0.0, time = 0.0; NSPoint star;