mirror of
https://github.com/dyuri/garmin-repafield.git
synced 2026-09-23 20:24:21 +00:00
fenix (260x260) support
This commit is contained in:
@@ -37,7 +37,7 @@ class HeartRate extends WatchUi.Drawable {
|
||||
}
|
||||
|
||||
function draw(dc as Dc) as Void {
|
||||
dc.setPenWidth(8);
|
||||
dc.setPenWidth((dc.getHeight() * 0.02).toNumber());
|
||||
dc.setColor(0x555555, Graphics.COLOR_TRANSPARENT);
|
||||
var width = dc.getWidth();
|
||||
dc.drawLine(width * .1, y, width * .9, y);
|
||||
|
||||
@@ -48,7 +48,7 @@ class Track extends WatchUi.Drawable {
|
||||
var h = dc.getHeight();
|
||||
var astart = 150;
|
||||
var aend = 390;
|
||||
dc.setPenWidth(4);
|
||||
dc.setPenWidth((dc.getWidth() * 0.01).toNumber());
|
||||
dc.setColor(0x555555, Graphics.COLOR_TRANSPARENT);
|
||||
dc.drawArc(w / 2, h / 2, w / 2 - 2, Graphics.ARC_COUNTER_CLOCKWISE, astart, aend);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user