1 Star 0 Fork 18

xingwei-liu/qt5-qtbase

forked from src-anolis-os/qt5-qtbase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix_qrasterpaintengine_rect_for_hidpi.patch 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei-liu 提交于 2022-10-12 16:54 . feature: add patchs for DDE
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
qtbase-opensource-src (5.6.1+dfsg-11deepin) unstable; urgency=medium
.
* add 0010-fix_qrasterpaintengine_rect_for_hidpi.patch
* add 0011-fix_qwidget_paint_area_for_hidpi.patch
Author: Deepin Packages Builder <packages@deepin.com>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2017-12-01
--- qtbase-opensource-src-5.6.1+dfsg.orig/src/gui/painting/qpaintengine_raster.cpp
+++ qtbase-opensource-src-5.6.1+dfsg/src/gui/painting/qpaintengine_raster.cpp
@@ -1637,6 +1637,10 @@ QRect QRasterPaintEngine::toNormalizedFi
if (y2 < y1)
qSwap(y1, y2);
+ if (!s->flags.legacy_rounding) {
+ return QRect(x1, y1, qMax(x2 - x1, qRound(rect.width() - 1)), qMax(y2 - y1, qRound(rect.height() - 1)));
+ }
+
return QRect(x1, y1, x2 - x1, y2 - y1);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingwei-liu/qt5-qtbase.git
git@gitee.com:xingwei-liu/qt5-qtbase.git
xingwei-liu
qt5-qtbase
qt5-qtbase
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385