mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-26 02:28:37 +00:00
spice_bitmap_utils: fix dump_bitmap
This commit is contained in:
parent
ed1f70c6d1
commit
93b88a73f3
@ -63,7 +63,7 @@ void dump_bitmap(SpiceBitmap *bitmap)
|
||||
int32_t tmp_32;
|
||||
uint16_t tmp_u16;
|
||||
FILE *f;
|
||||
int i;
|
||||
int i, j;
|
||||
|
||||
switch (bitmap->format) {
|
||||
case SPICE_BITMAP_FMT_1BIT_BE:
|
||||
@ -159,8 +159,8 @@ void dump_bitmap(SpiceBitmap *bitmap)
|
||||
for (i = 0; i < bitmap->data->num_chunks; i++) {
|
||||
SpiceChunk *chunk = &bitmap->data->chunk[i];
|
||||
int num_lines = chunk->len / bitmap->stride;
|
||||
for (i = 0; i < num_lines; i++) {
|
||||
dump_line(f, chunk->data + (i * bitmap->stride), n_pixel_bits, bitmap->x, row_size);
|
||||
for (j = 0; j < num_lines; j++) {
|
||||
dump_line(f, chunk->data + (j * bitmap->stride), n_pixel_bits, bitmap->x, row_size);
|
||||
}
|
||||
}
|
||||
fclose(f);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user