Commit 545539d4 authored by nanahira's avatar nanahira

Merge branch 'resize' of https://github.com/mercury233/ygopro

parents f846501a b529edff
......@@ -717,6 +717,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
return false;
}
void DeckBuilder::GetHoveredCard() {
int pre_code = hovered_code;
hovered_pos = 0;
hovered_code = 0;
irr::gui::IGUIElement* root = mainGame->env->getRootGUIElement();
......@@ -725,7 +726,6 @@ void DeckBuilder::GetHoveredCard() {
position2di pos = mainGame->ResizeReverse(mouse_pos.X, mouse_pos.Y);
int x = pos.X;
int y = pos.Y;
int pre_code = hovered_code;
is_lastcard = 0;
if(x >= 314 && x <= 794) {
if(y >= 164 && y <= 435) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment