Changeset 1628 for trunk/tools/neercs/video/render.cpp
- Timestamp:
- Jul 12, 2012, 4:36:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.