Ignore:
Timestamp:
Jul 12, 2012, 4:36:43 PM (11 years ago)
Author:
rez
Message:

text resize fix

File:
1 edited

Legend:

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

    r1626 r1628  
    8484ivec2 border;              // border width
    8585/* text variable */
    86 ivec2 ratio_2d(2,2);       // 2d ratio
     86ivec2 ratio_2d(2,4);       // 2d ratio
    8787ivec2 map_size(256,256);   // texture map size
    8888ivec2 font_size(8,8);      // font size
     
    232232    border = 12 * ratio_2d;
    233233    canvas_char = (screen_size - border * 2) / (font_size * ratio_2d);
    234     canvas_size = canvas_char * font_size * ratio_2d;
     234    canvas_size = canvas_char * font_size * ratio_2d.x;
    235235
    236236    border = (screen_size - canvas_size) / 2;
Note: See TracChangeset for help on using the changeset viewer.