diff --git a/Source/UI/Gauges/UIPetInfoBarGraph.cpp b/Source/UI/Gauges/UIPetInfoBarGraph.cpp index 61c3009a5..9f4c301c3 100644 --- a/Source/UI/Gauges/UIPetInfoBarGraph.cpp +++ b/Source/UI/Gauges/UIPetInfoBarGraph.cpp @@ -40,34 +40,34 @@ void UIPetInfoBarGraph::SetValue(int value) { // OFFSET: 0x0088C970 // FUNCTION: fn_11375 void UIPetInfoBarGraph::Paint() { - const auto* left = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_left.bmp"))); - const auto* middle = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_mid.bmp"))); - const auto* right = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_right.bmp"))); + auto* left = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_left.bmp"))); + auto* middle = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_mid.bmp"))); + auto* right = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_right.bmp"))); const int span = this->geometry.width - left->image.width - right->image.width; - this->DrawBitmap(0, 0, &left->image, false); + this->DrawBitmap(0, 0, left, false); for (int x = 0; x < span; ++x) { - this->DrawBitmap(left->image.width + x, 0, &middle->image, false); + this->DrawBitmap(left->image.width + x, 0, middle, false); } - this->DrawBitmap(this->geometry.width - right->image.width, 0, &right->image, false); + this->DrawBitmap(this->geometry.width - right->image.width, 0, right, false); if (this->unknown_007C != 0) { - const auto* barLeft = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_left.bmp"))); - const auto* barMiddle = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_mid.bmp"))); - const auto* barRight = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_right.bmp"))); + auto* barLeft = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_left.bmp"))); + auto* barMiddle = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_mid.bmp"))); + auto* barRight = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_right.bmp"))); const int fill = static_cast( static_cast(this->geometry.width - barRight->image.width - barLeft->image.width) * (static_cast(static_cast(this->unknown_007C)) / 100.0f) ); - this->DrawBitmap(0, 0, &barLeft->image, true); + this->DrawBitmap(0, 0, barLeft, true); int x = 0; for (; x < fill; ++x) { - this->DrawBitmap(barLeft->image.width + x, 0, &barMiddle->image, true); + this->DrawBitmap(barLeft->image.width + x, 0, barMiddle, true); } - this->DrawBitmap(barMiddle->image.width * x + barLeft->image.width, 0, &barRight->image, true); + this->DrawBitmap(barMiddle->image.width * x + barLeft->image.width, 0, barRight, true); } }