mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-19 08:46:32 +00:00
Merge pull request #16891 from s-hadinger/fix_display_calibrate
Fix DisplayCalibrate
This commit is contained in:
commit
c0c8f922c3
Binary file not shown.
@ -1,4 +1,7 @@
|
|||||||
# TouchScreen calibration
|
# TouchScreen calibration
|
||||||
|
#
|
||||||
|
# rm DisplayCalibrate.tapp; zip -j -0 DisplayCalibrate.tapp ts_calibrate/*
|
||||||
|
#
|
||||||
var ts_calibrate = module("ts_calibrate")
|
var ts_calibrate = module("ts_calibrate")
|
||||||
|
|
||||||
ts_calibrate.init = def (m)
|
ts_calibrate.init = def (m)
|
||||||
@ -104,8 +107,8 @@ ts_calibrate.init = def (m)
|
|||||||
end
|
end
|
||||||
|
|
||||||
# draw cross
|
# draw cross
|
||||||
def draw_cross(x, y, size)
|
def draw_cross(x, y, sz)
|
||||||
var sz2 = size / 2
|
var sz2 = sz / 2
|
||||||
self.p1.x = x - sz2
|
self.p1.x = x - sz2
|
||||||
self.p1.y = y
|
self.p1.y = y
|
||||||
self.p2.x = x + sz2
|
self.p2.x = x + sz2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user