diff options
| author | Nicolas Caramelli <caramelli.devel@gmail.com> | 2020-07-13 18:10:07 +0200 |
|---|---|---|
| committer | jeremyk-lunarg <jeremyk@lunarg.com> | 2020-08-07 11:59:36 -0600 |
| commit | 6d4f1c644bb71fa608fa84b952fcb22ccce6e9e2 (patch) | |
| tree | 614b7088d212c97a18eb5ec0f3ac6d5adfbf22a4 /cube/cube.cpp | |
| parent | c8be8c840153dfc736099c10d67abf880722f9e1 (diff) | |
| download | usermoji-6d4f1c644bb71fa608fa84b952fcb22ccce6e9e2.tar.xz | |
Fix formatting errors
Diffstat (limited to 'cube/cube.cpp')
| -rw-r--r-- | cube/cube.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp index a319b59a..e9f17757 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -2773,11 +2773,9 @@ void Demo::run_directfb() { if (pause) { event_buffer->WaitForEvent(event_buffer); - if (!event_buffer->GetEvent(event_buffer, DFB_EVENT(&event))) - handle_directfb_event(&event); + if (!event_buffer->GetEvent(event_buffer, DFB_EVENT(&event))) handle_directfb_event(&event); } else { - if (!event_buffer->GetEvent(event_buffer, DFB_EVENT(&event))) - handle_directfb_event(&event); + if (!event_buffer->GetEvent(event_buffer, DFB_EVENT(&event))) handle_directfb_event(&event); draw(); curFrame++; @@ -2808,7 +2806,7 @@ void Demo::create_directfb_window() { DFBSurfaceDescription desc; desc.flags = (DFBSurfaceDescriptionFlags)(DSDESC_CAPS | DSDESC_WIDTH | DSDESC_HEIGHT); desc.caps = DSCAPS_PRIMARY; - desc.width = -1; //width; + desc.width = width; desc.height = height; ret = dfb->CreateSurface(dfb, &desc, &window); if (ret) { |
