diff options
author | Tomi Valkeinen <tomi.valkeinen@iki.fi> | 2015-10-02 21:27:43 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@iki.fi> | 2015-10-03 16:59:19 +0300 |
commit | 89bfd9d567ced945bf2f4b3a927426c1ad2ee762 (patch) | |
tree | c6d3e5450196f11bb5c58ce1c7c92956ff8c1fb7 /py | |
parent | c77756c48d6f38c8b40a39fd53f610c296530adf (diff) |
Add DumbFramebuffer
Move the current Framebuffer to DumbFramebuffer, and make a simple
Framebuffer as its super class.
Diffstat (limited to 'py')
-rwxr-xr-x | py/functest.py | 2 | ||||
-rw-r--r-- | py/pykms.i | 1 | ||||
-rwxr-xr-x | py/test.py | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/py/functest.py b/py/functest.py index 21a543a..24a9a85 100755 --- a/py/functest.py +++ b/py/functest.py @@ -8,7 +8,7 @@ conn = card.get_first_connected_connector() mode = conn.get_default_mode() -fb = pykms.Framebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); +fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); pykms.draw_test_pattern(fb); crtc = conn.get_current_crtc() @@ -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" @@ -9,7 +9,7 @@ conn = card.get_first_connected_connector() mode = conn.get_default_mode() -fb = pykms.Framebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); +fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); pykms.draw_test_pattern(fb); crtc = conn.get_current_crtc() |