mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
bar placement
This commit is contained in:
parent
b050687720
commit
1c2ac14550
@ -397,13 +397,12 @@ make_progress_bar() {
|
||||
|
||||
RECT rect;
|
||||
GetClientRect(_hwnd, &rect);
|
||||
int width = rect.right - rect.left;
|
||||
int height = rect.bottom - rect.top;
|
||||
int win_width = rect.right - rect.left;
|
||||
int win_height = rect.bottom - rect.top;
|
||||
|
||||
int bar_width = min((int)(width * 0.6), 400);
|
||||
int bar_height = min((int)(height * 0.1), 24);
|
||||
int bar_x = (width - bar_width) / 2;
|
||||
int bar_y = (height - bar_height * 2);
|
||||
int bar_x, bar_y, bar_width, bar_height;
|
||||
get_bar_placement(win_width, win_height,
|
||||
bar_x, bar_y, bar_width, bar_height);
|
||||
|
||||
_progress_bar =
|
||||
CreateWindowEx(0, PROGRESS_CLASS, "", window_style,
|
||||
|
Loading…
x
Reference in New Issue
Block a user