Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

examples: Add missing Flip() to windows_moving example.

This was working fine in previous DirectFB versions,
but was clearly wrong.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
  • Loading branch information...
commit edd1e56d39e8d260c863226e1e3ba9e79412b30e 1 parent 16420f7
@ezequielgarcia authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  examples/windows_moving.lua
View
2  examples/windows_moving.lua
@@ -19,10 +19,12 @@ blue = layer:CreateWindow {posx=200, posy=200, width=300, height=300, surface_ca
-- Color windows, one red and one blue
s = red:GetSurface()
s:Clear( 0xff, 0, 0, 0xff)
+s:Flip()
s:Release()
s = blue:GetSurface()
s:Clear( 0, 0, 0xff, 0xff)
+s:Flip()
s:Release()
-- Make windows visible
Please sign in to comment.
Something went wrong with that request. Please try again.