mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python/turtle] Use Escher::Metric values instead of copying them
This commit is contained in:
@@ -5,6 +5,7 @@ extern "C" {
|
||||
#include <py/mpconfig.h>
|
||||
}
|
||||
#include <ion.h>
|
||||
#include <escher/metric.h>
|
||||
#include <kandinsky.h>
|
||||
#include <math.h>
|
||||
|
||||
@@ -71,7 +72,7 @@ private:
|
||||
* need to invert some values, hence k_invertedYAxisCoefficient. */
|
||||
static constexpr int k_invertedYAxisCoefficient = -1;
|
||||
static constexpr KDCoordinate k_xOffset = Ion::Display::Width / 2;
|
||||
static constexpr KDCoordinate k_yOffset = (Ion::Display::Height - 18) / 2;
|
||||
static constexpr KDCoordinate k_yOffset = (Ion::Display::Height - Metric::TitleBarHeight) / 2;
|
||||
static constexpr int k_numberOfIcons = 8;
|
||||
static constexpr uint8_t k_defaultSpeed = 3;
|
||||
static constexpr uint8_t k_maxSpeed = 10;
|
||||
|
||||
Reference in New Issue
Block a user