Browse Source

unshadow win

master
Odilitime 5 years ago
parent
commit
ed03a51bff
  1. 7
      src/graphics/components/Component.cpp

7
src/graphics/components/Component.cpp

@ -61,7 +61,8 @@ Component::~Component() { @@ -61,7 +61,8 @@ Component::~Component() {
}
// translate properties (left/right/width && top/bottom/height) into resizeable layout
void Component::setUpUI(std::map<std::string, std::string> &properties, Window *win) {
// we may not need pwin (we have this->win)
void Component::setUpUI(std::map<std::string, std::string> &properties, Window *pwin) {
UILayoutV2 boxSetup;
boxSetup.width.px = 32;
boxSetup.height.px = 32;
@ -125,8 +126,8 @@ void Component::setUpUI(std::map<std::string, std::string> &properties, Window * @@ -125,8 +126,8 @@ void Component::setUpUI(std::map<std::string, std::string> &properties, Window *
double xPct = 0, yPct = 0;
double wPct = 100, hPct = 100;
int wPx = 0, hPx = 0;
int winWidth = win->windowWidth;
int winHeight = win->windowHeight;
int winWidth = pwin->windowWidth;
int winHeight = pwin->windowHeight;
if (xUI) {
//std::cout << "box XUI at " << xUI->first.pct << "% +" << xUI->first.px << std::endl;
//std::cout << "box XUI for " << xUI->second.pct << "% +" << xUI->second.px << std::endl;

Loading…
Cancel
Save