Changeset 1974


Ignore:
Timestamp:
Oct 4, 2012, 2:09:36 AM (5 years ago)
Author:
rez
Message:

NEERCS: fixed setup position/size

File:
1 edited

Legend:

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

    r1971 r1974  
    133133int setup_item_key = 0;         // item array key
    134134ivec3 setup_size(29,9,12);      // size [w,h,split]
     135ivec2 setup_canvas_size(ivec2(setup_size.x+1,setup_size.y+1)*font_size*ivec2(2,4));
    135136ivec2 setup_color(0xaaa,0x222); // color [foreground,background] 0x678,0x234
    136137char const *setup_text[] = {
     
    10591060    m_txt_screen->Blit(border, canvas_size);
    10601061    if (m_setup)
    1061         m_txt_setup->Blit(border + canvas_size / 8,
    1062                           canvas_size - canvas_size / 4);
     1062        m_txt_setup->Blit((screen_size - setup_canvas_size) / 2, setup_canvas_size);
    10631063
    10641064    //if (m_polygon) glEnable(GL_LINE_SMOOTH); else glDisable(GL_LINE_SMOOTH);
Note: See TracChangeset for help on using the changeset viewer.