diff options
| author | Anatoly Trosinenko | 2018-02-05 14:32:28 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2018-02-16 12:25:35 +0100 |
| commit | 2ab858c6c38ee152299445f2810dbd4c3a0ac7ee (patch) | |
| tree | 052b4bf67e767dfd82bee497d1ea5263525d8399 /scripts/qapi | |
| parent | vnc: fix segfault in closed connection handling (diff) | |
| download | qemu-2ab858c6c38ee152299445f2810dbd4c3a0ac7ee.tar.gz qemu-2ab858c6c38ee152299445f2810dbd4c3a0ac7ee.tar.xz qemu-2ab858c6c38ee152299445f2810dbd4c3a0ac7ee.zip | |
sdl: restore optimized redraw
The documentation on SDL_RenderPresent function states that
"the backbuffer should be considered invalidated after each present",
so copy the entire texture on each redraw.
On the other hand, SDL_UpdateTexture function is described as
"fairly slow function", so restrict it to just the changed pixels.
Also added SDL_RenderClear call, as suggested in the documentation
page on SDL_RenderPresent.
Signed-off-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Message-id: 20180205133228.25082-1-anatoly.trosinenko@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/qapi')
0 files changed, 0 insertions, 0 deletions
