Skip to content
Snippets Groups Projects
  • Deucе's avatar
    31a46d8a
    Fix issue with bitmap_drv_init_mode() · 31a46d8a
    Deucе authored
    Because bitmap_get_scaled_win_size() was being clamped to maxsize,
    no matter how much mult was incremented, w and h would never be
    larger than maxwidth/maxheight and only under exceptional
    circumstances would the be equal, which would result in an infinite
    loop.
    
    While we're here, set the integer scaling value so we're not chasing
    ulps all over the place with floating point math/scaling when we
    don't need to.
    31a46d8a
    History
    Fix issue with bitmap_drv_init_mode()
    Deucе authored
    Because bitmap_get_scaled_win_size() was being clamped to maxsize,
    no matter how much mult was incremented, w and h would never be
    larger than maxwidth/maxheight and only under exceptional
    circumstances would the be equal, which would result in an infinite
    loop.
    
    While we're here, set the integer scaling value so we're not chasing
    ulps all over the place with floating point math/scaling when we
    don't need to.