Changeset 1885


Ignore:
Timestamp:
Sep 6, 2012, 9:21:47 PM (7 years ago)
Author:
sam
Message:

neercs: clamp canvas size to ensure we never get to zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/video/render.cpp

    r1883 r1885  
    369369    //border.y = border.x; // enabled to get same border everywhere
    370370    canvas_char = (screen_size - border * 2) / (font_size * ratio_2d);
     371    canvas_char = max(canvas_char, ivec2(1, 1));
    371372    canvas_size = canvas_char * font_size * ratio_2d;
    372373
Note: See TracChangeset for help on using the changeset viewer.