Displaying 1 result from an estimated 1 matches for "rgb_to_pixel".
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...+ s->last_width = width;
+ s->last_height = height;
+ s->last_ch = cheight;
+ s->last_cw = cw;
full_update = 1;
}
- s->last_width = width;
- s->last_height = height;
- s->last_ch = cheight;
- s->last_cw = cw;
s->rgb_to_pixel =
rgb_to_pixel_dup_table[get_depth_index(s->ds)];
@@ -1289,7 +1290,7 @@
full_update |= update_palette16(s);
palette = s->last_palette;
- x_incr = cw * ((s->ds->depth + 7) >> 3);
+ x_incr = cw * ds_get_bytes_per_pixel(s->ds);
/* compute font...