mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-07 08:39:28 +00:00
Merge branch 'RPCS3:master' into uruntime
This commit is contained in:
commit
73609756dc
2 changed files with 1 additions and 9 deletions
|
@ -4653,7 +4653,7 @@ void PPUTranslator::MTFSF(ppu_opcode_t op)
|
||||||
|
|
||||||
for (u32 i = 16; i < 20; i++)
|
for (u32 i = 16; i < 20; i++)
|
||||||
{
|
{
|
||||||
if (op.flm & (128 >> (i / 4)) != 0)
|
if ((op.flm & (128 >> (i / 4))) != 0)
|
||||||
{
|
{
|
||||||
SetFPSCRBit(i, Trunc(m_ir->CreateLShr(value, i ^ 31), GetType<bool>()), false);
|
SetFPSCRBit(i, Trunc(m_ir->CreateLShr(value, i ^ 31), GetType<bool>()), false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,12 +38,7 @@ public:
|
||||||
|
|
||||||
// Adjust our painter parameters with some magic that looks good.
|
// Adjust our painter parameters with some magic that looks good.
|
||||||
// This is necessary so that we don't draw on top of the optional widget.
|
// This is necessary so that we don't draw on top of the optional widget.
|
||||||
// If you're not happy with this code don't hesitate to contact Megamouse
|
|
||||||
#ifdef __linux__
|
|
||||||
static constexpr int margin_adjustement = 12;
|
|
||||||
#else
|
|
||||||
static constexpr int margin_adjustement = 4;
|
static constexpr int margin_adjustement = 4;
|
||||||
#endif
|
|
||||||
|
|
||||||
const int margin = (option.rect.height() - opt.fontMetrics.height() - margin_adjustement);
|
const int margin = (option.rect.height() - opt.fontMetrics.height() - margin_adjustement);
|
||||||
QRect text_rect = style->subElementRect(QStyle::SE_ItemViewItemText, &opt, nullptr);
|
QRect text_rect = style->subElementRect(QStyle::SE_ItemViewItemText, &opt, nullptr);
|
||||||
|
@ -56,10 +51,7 @@ public:
|
||||||
text_rect.setTop(text_rect.top() + margin);
|
text_rect.setTop(text_rect.top() + margin);
|
||||||
|
|
||||||
painter->translate(text_rect.topLeft());
|
painter->translate(text_rect.topLeft());
|
||||||
|
|
||||||
#ifndef __linux__
|
|
||||||
painter->setClipRect(text_rect.translated(-text_rect.topLeft()));
|
painter->setClipRect(text_rect.translated(-text_rect.topLeft()));
|
||||||
#endif
|
|
||||||
|
|
||||||
// Create a context for our painter
|
// Create a context for our painter
|
||||||
QAbstractTextDocumentLayout::PaintContext context;
|
QAbstractTextDocumentLayout::PaintContext context;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue