kmscube: fix wrong uses of class Framebuffer
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 25 Apr 2016 14:24:39 +0000 (17:24 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 25 Apr 2016 14:24:39 +0000 (17:24 +0300)
kmscube/cube-gbm.cpp

index d015c55f64de16abd2d9b520c5263e042bdf1c5b..bbf58d1377f0017f0b4f4cfbae36909ec2a8a5b4 100644 (file)
@@ -140,7 +140,7 @@ public:
                return fb;
        }
 
                return fb;
        }
 
-       struct Framebuffer* lock_next()
+       Framebuffer* lock_next()
        {
                bo_prev = bo_next;
                bo_next = gsurface->lock_front_buffer();
        {
                bo_prev = bo_next;
                bo_next = gsurface->lock_front_buffer();
@@ -201,9 +201,9 @@ public:
 
                m_surface1->make_current();
                m_surface1->swap_buffers();
 
                m_surface1->make_current();
                m_surface1->swap_buffers();
-               struct Framebuffer* fb = m_surface1->lock_next();
+               Framebuffer* fb = m_surface1->lock_next();
 
 
-               struct Framebuffer* planefb = 0;
+               Framebuffer* planefb = 0;
 
                if (m_plane) {
                        m_surface2->make_current();
 
                if (m_plane) {
                        m_surface2->make_current();
@@ -272,9 +272,9 @@ private:
                m_surface1->make_current();
                m_scene1->draw(m_frame_num * m_rotation_mult);
                m_surface1->swap_buffers();
                m_surface1->make_current();
                m_scene1->draw(m_frame_num * m_rotation_mult);
                m_surface1->swap_buffers();
-               struct Framebuffer* fb = m_surface1->lock_next();
+               Framebuffer* fb = m_surface1->lock_next();
 
 
-               struct Framebuffer* planefb = 0;
+               Framebuffer* planefb = 0;
 
                if (m_plane) {
                        m_surface2->make_current();
 
                if (m_plane) {
                        m_surface2->make_current();