diff options
author | 2015-04-18 10:48:31 +0200 | |
---|---|---|
committer | 2015-04-21 21:49:42 +0200 | |
commit | d1436e698aeb269e6f024bae5d78307d5258b00b (patch) | |
tree | 252f8a0418a483725c80cdb8b72f0157e8d5d25a /src/lib/util/harddisk.c | |
parent | 0d7860c6753dcaf6cc98c8395f4b4a915500c4d5 (diff) |
luaengine: accept any LUA number type as coordinate
This commit fixes a type confusion bug in all draw_*() API methods.
When decimal (ie. subpixels) values were passed by user scripts, they
were incorrectly casted from float to plain integers, resulting in
incorrect graphical artifacts.
As this may happen quite often within scripts manipulating numerical
values in LUA, we now also accept decimal values as coordinates.
Signed-off-by: Luca Bruno <lucab@debian.org>
Diffstat (limited to 'src/lib/util/harddisk.c')
0 files changed, 0 insertions, 0 deletions