Skip to content

Commit e755eab

Browse files
committed
qemu: fix typo in spice_iosurface_resize
1 parent adabc89 commit e755eab

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

patches/qemu-10.0.2-utm.patch

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,3 +534,30 @@ index 70996b5ab1..a36c692bc3 100644
534534
--
535535
2.41.0
536536

537+
From 338fdd995e8f665edbdb1acd0f1b63f2ca3c266c Mon Sep 17 00:00:00 2001
538+
From: osy <[email protected]>
539+
Date: Fri, 2 Jan 2026 12:41:52 -0800
540+
Subject: [PATCH] ui/spice-display: fix typo in spice_iosurface_resize
541+
542+
---
543+
ui/spice-display.c | 4 ++--
544+
1 file changed, 2 insertions(+), 2 deletions(-)
545+
546+
diff --git a/ui/spice-display.c b/ui/spice-display.c
547+
index b47722ea4f..c7688256e9 100644
548+
--- a/ui/spice-display.c
549+
+++ b/ui/spice-display.c
550+
@@ -912,8 +912,8 @@ static void spice_iosurface_destroy(SimpleSpiceDisplay *ssd)
551+
static int spice_iosurface_resize(SimpleSpiceDisplay *ssd, int width, int height)
552+
{
553+
if (ssd->iosurface) {
554+
- if (IOSurfaceGetHeight(ssd->iosurface) != width ||
555+
- IOSurfaceGetWidth(ssd->iosurface) != height) {
556+
+ if (IOSurfaceGetHeight(ssd->iosurface) != height ||
557+
+ IOSurfaceGetWidth(ssd->iosurface) != width) {
558+
spice_iosurface_destroy(ssd);
559+
return spice_iosurface_create(ssd, width, height);
560+
} else {
561+
--
562+
2.50.1 (Apple Git-155)
563+

0 commit comments

Comments
 (0)