diff options
author | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2021-08-26 21:57:27 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-08-27 10:59:31 +0200 |
commit | 9690c1b3e30410f4780dc6466ae474cc1350f82a (patch) | |
tree | 09128dd0088f9e135e62d2a16b87a46c89e98262 /source/Irrlicht/CGUIListBox.cpp | |
parent | c26ff3476f5cce6c6ce2d6fa1b88c9dfff3674ca (diff) | |
download | irrlicht-9690c1b3e30410f4780dc6466ae474cc1350f82a.tar.xz |
Merging r6196 through r6248 from trunk to ogl-es branch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6249 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'source/Irrlicht/CGUIListBox.cpp')
-rw-r--r-- | source/Irrlicht/CGUIListBox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Irrlicht/CGUIListBox.cpp b/source/Irrlicht/CGUIListBox.cpp index 39e3591..65434fa 100644 --- a/source/Irrlicht/CGUIListBox.cpp +++ b/source/Irrlicht/CGUIListBox.cpp @@ -720,6 +720,7 @@ void CGUIListBox::serializeAttributes(io::IAttributes* out, io::SAttributeReadWr }
}
}
+ out->addInt("Selected", Selected);
}
@@ -759,6 +760,8 @@ void CGUIListBox::deserializeAttributes(io::IAttributes* in, io::SAttributeReadW }
}
}
+ Selected = in->getAttributeAsInt("Selected", Selected);
+ recalculateScrollPos();
}
|