X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMenu.cpp;h=f6a1957527611a0e4cfc17bfa95163567c73072f;hb=fab6b0c26c94aaa05fffeea7374ee2ce6a2197fa;hp=20038734b8a15bda65231022f535935f74ba60f2;hpb=12421cc17c6176a16ec18901e02d760ccd0b28ad;p=lugaru.git diff --git a/Source/Menu.cpp b/Source/Menu.cpp index 2003873..f6a1957 100644 --- a/Source/Menu.cpp +++ b/Source/Menu.cpp @@ -144,7 +144,7 @@ void Menu::drawItems(){ glPushMatrix(); if(it->type==MenuItem::MAPMARKER){ glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); - glTranslatef(2,-5,0); //from old code + glTranslatef(2.5,-4.5,0); //from old code }else{ glBlendFunc(GL_SRC_ALPHA,GL_ONE); } @@ -202,12 +202,12 @@ void Menu::drawItems(){ break; case MenuItem::MAPLINE: { XYZ linestart; - linestart.x=it->x-0.5; - linestart.y=it->y-0.5; + linestart.x=it->x; + linestart.y=it->y; linestart.z=0; XYZ lineend; - lineend.x=it->x+it->w-0.5; - lineend.y=it->y+it->h-0.5; + lineend.x=it->x+it->w; + lineend.y=it->y+it->h; lineend.z=0; XYZ offset=lineend-linestart; XYZ fac=offset;