Ticket #2337: vesa.accelerant.diff

File vesa.accelerant.diff, 727 bytes (added by diver, 14 years ago)

workaround patch

  • src/add-ons/accelerants/vesa/mode.cpp

     
    139139    if (vesa_propose_display_mode(&mode, &mode, &mode) != B_OK)
    140140        return B_BAD_VALUE;
    141141
    142     vesa_mode* modes = gInfo->vesa_modes;
     142/*  vesa_mode* modes = gInfo->vesa_modes;
    143143    for (uint32 i = gInfo->shared_info->vesa_mode_count; i-- > 0;) {
    144144        // search mode in VESA mode list
    145145        // TODO: list is ordered, we could use binary search
     
    149149                == mode.space)
    150150            return ioctl(gInfo->device, VESA_SET_DISPLAY_MODE, &i, sizeof(i));
    151151    }
    152 
     152*/
    153153    return B_UNSUPPORTED;
    154154}
    155155