From 87705778a8ab16ab86bf1db066930a60cc1b4efc Mon Sep 17 00:00:00 2001 From: KikooDX Date: Wed, 22 Apr 2020 13:41:41 +0200 Subject: [PATCH] cairo is only required in the "open image" bloc --- demo.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo.lua b/demo.lua index 99f0092..b8860d5 100644 --- a/demo.lua +++ b/demo.lua @@ -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()