Skip to content

Commit a462181

Browse files
committedDec 9, 2019
guiConfirmRegistration: Fix hidden error message
1 parent 8f73ec6 commit a462181

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎src/gui/guiConfirmRegistration.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3333
// Continuing from guiPasswordChange.cpp
3434
const int ID_confirmPassword = 262;
3535
const int ID_confirm = 263;
36-
const int ID_message = 264;
36+
const int ID_intotext = 264;
3737
const int ID_cancel = 265;
38+
const int ID_message = 266;
3839

3940
GUIConfirmRegistration::GUIConfirmRegistration(gui::IGUIEnvironment *env,
4041
gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client,
@@ -106,15 +107,15 @@ void GUIConfirmRegistration::regenerateGui(v2u32 screensize)
106107

107108
wchar_t *info_text_buf_wide = utf8_to_wide_c(info_text_buf);
108109
gui::IGUIEditBox *e = new gui::intlGUIEditBox(info_text_buf_wide, true,
109-
Environment, this, ID_message, rect2, false, true);
110+
Environment, this, ID_intotext, rect2, false, true);
110111
delete[] info_text_buf_wide;
111112
e->drop();
112113
e->setMultiLine(true);
113114
e->setWordWrap(true);
114115
e->setTextAlignment(gui::EGUIA_UPPERLEFT, gui::EGUIA_CENTER);
115116
}
116117

117-
ypos += 210 * s;
118+
ypos += 200 * s;
118119
{
119120
core::rect<s32> rect2(0, 0, 540 * s, 30 * s);
120121
rect2 += topleft_client + v2s32(30 * s, ypos);
@@ -124,7 +125,7 @@ void GUIConfirmRegistration::regenerateGui(v2u32 screensize)
124125
Environment->setFocus(e);
125126
}
126127

127-
ypos += 60 * s;
128+
ypos += 50 * s;
128129
{
129130
core::rect<s32> rect2(0, 0, 230 * s, 35 * s);
130131
rect2 = rect2 + v2s32(size.X / 2 - 220 * s, ypos);
@@ -140,8 +141,8 @@ void GUIConfirmRegistration::regenerateGui(v2u32 screensize)
140141
delete[] text;
141142
}
142143
{
143-
core::rect<s32> rect2(0, 0, 200 * s, 20 * s);
144-
rect2 += topleft_client + v2s32(30 * s, ypos - 40 * s);
144+
core::rect<s32> rect2(0, 0, 500 * s, 40 * s);
145+
rect2 += topleft_client + v2s32(30 * s, ypos + 40 * s);
145146
text = wgettext("Passwords do not match!");
146147
IGUIElement *e = Environment->addStaticText(
147148
text, rect2, false, true, this, ID_message);

0 commit comments

Comments
 (0)
Please sign in to comment.