dc2d58d28e
This prevents some pretty unintuitive behavior with dbgbmap.py -H2 (the default) in the terminal. Consider before: bd 4096x256, 7.8% mdir, 0.4% btree, 0.0% data mm--------b-----mm--mm--mm--mmmmmmm--mm--mmmm----------------------- Vs after: bd 4096x256, 7.8% mdir, 0.4% btree, 0.0% data m-----------------------------------b-mmmmmmmm---------------------- Compared to the original bmap (-H5): bd 4096x256, 7.8% mdir, 0.4% btree, 0.0% data mm------------------------------------------------------------------ -------------------------------------------------------------------- ----------b-----mm--mm--mm--mmmmmmm--mm--mmmm----------------------- -------------------------------------------------------------------- What's happening is dbgbmap.py is prioritizing aspect ratio over pixel boundaries, so it's happy drawing a 4-row bmap to a 1-row Canvas. But of course we can't see subpixels, so the result is quite confusing. Prioritizing rows while tiling avoids this.