mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-16 16:21:02 +00:00
Fix cellMsgDialog
This commit is contained in:
parent
16d7023a92
commit
0d1cb8c878
@ -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())
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user