Skip to content
  • Federico Mena Quintero's avatar
    viewport.rs: new draw_in_viewport() function · 2a66e602
    Federico Mena Quintero authored
    The general "establish a new viewport" pattern is done in different
    ways in several places in the code.  We capture this pattern in a
    single function which takes care of setting up a clipping rectangle
    and a transformation matrix, and call a lambda to actually draw the
    contents.
    2a66e602