summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-02 21:27:43 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-03 16:59:19 +0300
commit89bfd9d567ced945bf2f4b3a927426c1ad2ee762 (patch)
treec6d3e5450196f11bb5c58ce1c7c92956ff8c1fb7 /lua
parentc77756c48d6f38c8b40a39fd53f610c296530adf (diff)
Add DumbFramebuffer
Move the current Framebuffer to DumbFramebuffer, and make a simple Framebuffer as its super class.
Diffstat (limited to 'lua')
-rw-r--r--lua/luakms.i1
-rwxr-xr-xlua/test.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/lua/luakms.i b/lua/luakms.i
index 0b87857..5530f84 100644
--- a/lua/luakms.i
+++ b/lua/luakms.i
@@ -17,6 +17,7 @@ using namespace kms;
%include "card.h"
%include "property.h"
%include "framebuffer.h"
+%include "dumbframebuffer.h"
%include "plane.h"
%include "connector.h"
%include "encoder.h"
diff --git a/lua/test.lua b/lua/test.lua
index bc6c4fc..9455944 100755
--- a/lua/test.lua
+++ b/lua/test.lua
@@ -10,7 +10,7 @@ conn = card:get_first_connected_connector()
mode = conn:get_default_mode()
-fb = libluakms.Framebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
+fb = libluakms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
libluakms.draw_test_pattern(fb);
crtc = conn:get_current_crtc()