Changeset 1628


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

text resize fix

Location:
trunk/tools/neercs
Files:
2 edited

Legend:

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

    r1625 r1628  
    113113    caca_draw_thin_line(m_caca, x3, y3, x1, y1);
    114114
    115     int logo_x = 1;
    116     int logo_y = h / 2 - 3;
     115    int logo_x = (w - 46) / 2;
     116    int logo_y = h / 2 - 2;
    117117
    118118/*
     
    137137    caca_printf(m_caca, 1, h - 2, "W=%i H=%i", w, h);
    138138    //caca_printf(m_caca, 1, h - 2, "2d ratio=%i*%i", ratio_2d.x, ratio_2d.y);
    139     caca_put_str(m_caca, w - 13, h - 2, "CACA RULEZ");
     139    caca_put_str(m_caca, w - 11, h - 2, "CACA RULEZ");
    140140}
    141141
  • 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.