cairo is only required in the "open image" bloc

This commit is contained in:
KikooDX 2020-04-22 13:41:41 +02:00
parent 38a3ae4d89
commit 87705778a8
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
local cairo = require'cairo' --used to open the file
local bitmap = require'bitmap' --used to read its content
do --open image
local cairo = require'cairo' --used to open the file
local image = cairo.load_png("/home/user/cle-usb-emulateurs.png")
image_infos = {width = image:width(), height = image:height()}
image_bitmap = image:bitmap()