Changeset 1628 for trunk/tools/neercs
- Timestamp:
- Jul 12, 2012, 4:36:43 PM (11 years ago)
- Location:
- trunk/tools/neercs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/neercs/neercs.cpp
r1625 r1628 113 113 caca_draw_thin_line(m_caca, x3, y3, x1, y1); 114 114 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; 117 117 118 118 /* … … 137 137 caca_printf(m_caca, 1, h - 2, "W=%i H=%i", w, h); 138 138 //caca_printf(m_caca, 1, h - 2, "2d ratio=%i*%i", ratio_2d.x, ratio_2d.y); 139 caca_put_str(m_caca, w - 1 3, h - 2, "CACA RULEZ");139 caca_put_str(m_caca, w - 11, h - 2, "CACA RULEZ"); 140 140 } 141 141 -
trunk/tools/neercs/video/render.cpp
r1626 r1628 84 84 ivec2 border; // border width 85 85 /* text variable */ 86 ivec2 ratio_2d(2, 2); // 2d ratio86 ivec2 ratio_2d(2,4); // 2d ratio 87 87 ivec2 map_size(256,256); // texture map size 88 88 ivec2 font_size(8,8); // font size … … 232 232 border = 12 * ratio_2d; 233 233 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; 235 235 236 236 border = (screen_size - canvas_size) / 2;
Note: See TracChangeset
for help on using the changeset viewer.