Revision 0e1f5a0c hw/ssd0303.c

b/hw/ssd0303.c
206 206
    if (!s->redraw)
207 207
        return;
208 208

  
209
    switch (s->ds->depth) {
209
    switch (ds_get_bits_per_pixel(s->ds)) {
210 210
    case 0:
211 211
        return;
212 212
    case 15:
......
238 238
        colors[0] = colortab + dest_width;
239 239
        colors[1] = colortab;
240 240
    }
241
    dest = s->ds->data;
241
    dest = ds_get_data(s->ds);
242 242
    for (y = 0; y < 16; y++) {
243 243
        line = (y + s->start_line) & 63;
244 244
        src = s->framebuffer + 132 * (line >> 3) + 36;

Also available in: Unified diff