
10.04.2015, 21:05
|
|
Познающий
Регистрация: 09.07.2014
Сообщений: 42
С нами:
6233649
Репутация:
0
|
|
My problem is:
I draw a box (my "coordinates")
Код:
Код:
SF->getRender()->DrawBorderedBox(1300, 700, 600, 300, D3DCOLOR_ARGB(255, 0, 0, 0), 3, D3DCOLOR_ARGB(50, 255, 255, 255));
But... how can convert for every screen resolution?
@SR_team
@Dark_Knight
/edit:
My solution.. (not the best  )
Код:
Код:
int Resolution[2];
SF->getGame()->getScreenResolution(&Resolution[0], &Resolution[1]);
X = Resolution[0] / 2;
Y = Resolution[1] / 2;
SF->getRender()->DrawBorderedBox(X + X - 610, Y + Y - 310, 600, 300, D3DCOLOR_ARGB(255, 0, 0, 0), 3, D3DCOLOR_ARGB(50, 255, 255, 255));
|
|
|