From 1030a83acc023601e2f38a273170e55f641dc9eb Mon Sep 17 00:00:00 2001 From: rjb330 <122177540+rjb330@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:24:47 -0700 Subject: Remove bitmap offset from radio for qtcurve Signed-off-by: rjb330 <122177540+rjb330@users.noreply.github.com> (cherry picked from commit 8b22d57a20d86488421b96a27c675d7300d0bc07) --- src/qt_qt_wrapper.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index e7644dd..a909463 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -98,7 +98,6 @@ int isAlloy; int isDomino; int isPolyester; int isMotif; -int isQtCurve; int eclipseFix; int openOfficeFix; int mozillaFix; @@ -448,7 +447,6 @@ void createTQApp() isPolyester = (TQString(tqApp->style().name()).lower() == "polyester"); isMotif = (TQString(tqApp->style().name()).lower() == "motif" || TQString(tqApp->style().name()).lower() == "cde"); - isQtCurve = (TQString(tqApp->style().name()).lower() == "qtcurve"); if (isDomino) { @@ -1205,12 +1203,11 @@ void drawRadioButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int // We cheat, and draw them over the expected area. int xOffset = (realW - w) / 2; int yOffset = (realH - h) / 2; - int bOffset = isQtCurve ? -1 : 0; TQBitmap bitmap(realW, realH, TRUE); TQPainter bpainter(&bitmap); bpainter.setBrush(TQt::color1); - tqApp->style().drawControlMask(TQStyle::CE_RadioButton, &bpainter, &radio, TQRect(0-bOffset,0-bOffset,realW,realH), sflags); + tqApp->style().drawControlMask(TQStyle::CE_RadioButton, &bpainter, &radio, TQRect(0,0,realW,realH), sflags); pixmap.setMask(bitmap); drawTQPixmapToWindow(window, style->bg_gc[state], &pixmap, x-xOffset, y-yOffset, realW, realH); -- cgit v1.2.1