xemu/hw/display
Gerd Hoffmann 19aaee2a65 ramfb: don't update RAMFBState on errors
Store width & height & surface in local variables.  Update RAMFBState
with the new values only in case the ramfb_create_display_surface() call
succeeds.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 20200429115236.28709-5-kraxel@redhat.com
2020-05-18 15:43:35 +02:00
..
2019-08-22 10:04:20 +02:00
2019-08-22 10:04:20 +02:00
2019-08-22 10:04:20 +02:00
2020-05-15 07:08:52 +02:00
2017-03-27 12:14:45 +02:00
2019-08-16 13:31:52 +02:00
2019-12-16 13:04:46 +01:00
2020-01-27 10:49:51 -08:00
2019-08-16 13:31:52 +02:00
2016-01-29 15:07:24 +00:00
2020-02-13 08:31:40 +01:00
2019-08-16 13:31:52 +02:00
2017-04-24 12:32:12 +01:00
2020-05-15 07:08:52 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2020-05-15 07:08:52 +02:00
2020-05-15 07:08:52 +02:00
2019-08-16 13:31:52 +02:00