summaryrefslogtreecommitdiff
path: root/kms++/inc
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-12 10:01:57 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-12 10:01:57 +0300
commitcdab6faf18b5f2b9964476673cd6d6bc87b264ba (patch)
tree1929adb55a09d55643355f3893ffeacf5f090d9c /kms++/inc
parenta740efaa0c3545afb3dbf77739fc83bf30e574b9 (diff)
fbtestpat: remove extra leftover memcpy
Diffstat (limited to 'kms++/inc')
0 files changed, 0 insertions, 0 deletions
"hl opt">().__init__() self.bar_xpos = 0 self.front_buf = 0 self.fb1 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); self.fb2 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); def handle_page_flip(self, frame, time): if self.front_buf == 0: fb = self.fb2 else: fb = self.fb1 self.front_buf = self.front_buf ^ 1 current_xpos = self.bar_xpos; old_xpos = (current_xpos + (fb.width - bar_width - bar_speed)) % (fb.width - bar_width); new_xpos = (current_xpos + bar_speed) % (fb.width - bar_width); self.bar_xpos = new_xpos pykms.draw_color_bar(fb, old_xpos, new_xpos, bar_width) if card.has_atomic: ctx = pykms.AtomicReq(card) ctx.add(crtc.primary_plane, "FB_ID", fb.id) ctx.commit(self) else: crtc.page_flip(fb, self) card = pykms.Card() conn = card.get_first_connected_connector() mode = conn.get_default_mode() crtc = conn.get_current_crtc() fliphandler = FlipHandler() crtc.set_mode(conn, fliphandler.fb1, mode)