From e4d84e2c1c8465a40642aa882cd6dc08273173d9 Mon Sep 17 00:00:00 2001 From: Ani Date: Tue, 8 Apr 2025 05:03:34 +0200 Subject: [PATCH 1/2] Qt: Fix multi package install dialog on Linux --- rpcs3/rpcs3qt/richtext_item_delegate.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/rpcs3/rpcs3qt/richtext_item_delegate.h b/rpcs3/rpcs3qt/richtext_item_delegate.h index 8e09413397..06686df6c6 100644 --- a/rpcs3/rpcs3qt/richtext_item_delegate.h +++ b/rpcs3/rpcs3qt/richtext_item_delegate.h @@ -38,12 +38,7 @@ public: // 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. - // 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; -#endif const int margin = (option.rect.height() - opt.fontMetrics.height() - margin_adjustement); QRect text_rect = style->subElementRect(QStyle::SE_ItemViewItemText, &opt, nullptr); @@ -56,10 +51,7 @@ public: text_rect.setTop(text_rect.top() + margin); painter->translate(text_rect.topLeft()); - -#ifndef __linux__ painter->setClipRect(text_rect.translated(-text_rect.topLeft())); -#endif // Create a context for our painter QAbstractTextDocumentLayout::PaintContext context; From 87d8bebd0d1b5ef2e10bc14d5c4f64cdd4d1e1a3 Mon Sep 17 00:00:00 2001 From: elad335 <18193363+elad335@users.noreply.github.com> Date: Tue, 8 Apr 2025 11:10:44 +0300 Subject: [PATCH 2/2] PPU LLVM: Fixup MTFSF --- rpcs3/Emu/Cell/PPUTranslator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUTranslator.cpp b/rpcs3/Emu/Cell/PPUTranslator.cpp index bc3667d7bf..e485eeecfb 100644 --- a/rpcs3/Emu/Cell/PPUTranslator.cpp +++ b/rpcs3/Emu/Cell/PPUTranslator.cpp @@ -4653,7 +4653,7 @@ void PPUTranslator::MTFSF(ppu_opcode_t op) 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()), false); }