blob: b481abebf639bfea2e0acf53bc7f880e44c239e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
graphic: 0.948
device: 0.826
mistranslation: 0.821
ppc: 0.735
vnc: 0.722
semantic: 0.694
performance: 0.612
files: 0.592
network: 0.586
architecture: 0.532
PID: 0.527
risc-v: 0.527
i386: 0.525
socket: 0.512
user-level: 0.509
hypervisor: 0.401
x86: 0.395
arm: 0.361
boot: 0.358
debug: 0.357
VMM: 0.349
TCG: 0.308
register: 0.285
peripherals: 0.284
permissions: 0.283
kernel: 0.274
virtual: 0.228
KVM: 0.213
assembly: 0.098
Screenshot images are skewed
Description of problem:
1. Start a guest with SPICE
2. Connect with a SPICE client
3. Resize screen to a width that is not a multiple of 4 (e. g. 487x956)
4. Take a screenshot
The screenshot ppm file will contain the actual dimensions in the header, e. g.
```
P6
487 956
255
```
but the image data will contain more than that (e. g. 488 * 956 * 3 bytes).
As a result, when displaying the image it appears skewed.
Steps to reproduce:
See above.
Additional information:
I'm not familiar with qemu code nor the pixman library, but I assume that in [this line](https://gitlab.com/qemu-project/qemu/-/blob/bc6ec396d471d9e4aae7e2ff8b72e11da9a97665/ui/console.c#L316) `get_stride` is wrong. Instead, it should write `width*3` bytes.
|