Fix cellMsgDialog

This commit is contained in:
Nekotekina 2017-11-14 17:57:56 +03:00
parent 16d7023a92
commit 0d1cb8c878
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ s32 cellMsgDialogOpen2(u32 type, vm::cptr<char> msgString, vm::ptr<CellMsgDialog
return CELL_MSGDIALOG_ERROR_PARAM; return CELL_MSGDIALOG_ERROR_PARAM;
} }
const MsgDialogType _type = { type }; const MsgDialogType _type = {type ^ CELL_MSGDIALOG_TYPE_BG_INVISIBLE};
switch (_type.button_type.unshifted()) switch (_type.button_type.unshifted())
{ {

View File

@ -25,7 +25,7 @@ void msg_dialog_frame::Create(const std::string& msg)
m_dialog = new custom_dialog(type.disable_cancel); m_dialog = new custom_dialog(type.disable_cancel);
m_dialog->setWindowTitle(type.se_normal ? "Normal dialog" : "Error dialog"); m_dialog->setWindowTitle(type.se_normal ? "Normal dialog" : "Error dialog");
m_dialog->setWindowFlags(m_dialog->windowFlags() & ~Qt::WindowContextHelpButtonHint); m_dialog->setWindowFlags(m_dialog->windowFlags() & ~Qt::WindowContextHelpButtonHint);
m_dialog->setWindowOpacity(type.bg_invisible ? 1.0 : 192.0 / 255.0); m_dialog->setWindowOpacity(type.bg_invisible ? 1. : 0.75);
m_text = new QLabel(qstr(msg)); m_text = new QLabel(qstr(msg));
m_text->setAlignment(Qt::AlignCenter); m_text->setAlignment(Qt::AlignCenter);