Commit 79debd9
fix: remove device pixel ratio scaling in drag pixmap
Removed device pixel ratio calculations from drag pixmap generation to
fix incorrect scaling on high DPI displays. The code was incorrectly
applying device pixel ratio multiple times which caused the drag preview
image to be too small. Simplified the image scaling by using direct
pixel dimensions without DPI scaling adjustments.
Log: Fixed drag tab preview display on high DPI screens
Influence:
1. Test dragging tabs on both standard and high DPI displays
2. Verify drag preview image size matches expected dimensions
3. Check that shadow effects render correctly around the preview
4. Test on different display scaling settings (100%, 150%, 200%)
5. Verify tab dragging functionality remains smooth
fix: 修复拖拽标签页预览在高DPI显示下的缩放问题
移除拖拽图像生成中的设备像素比计算,修复在高DPI显示器上预览图像过小的问
题。代码之前多次应用设备像素比导致缩放不正确。简化图像缩放逻辑,直接使用
像素尺寸而不进行DPI缩放调整。
Log: 修复高DPI屏幕上拖拽标签页预览显示问题
Influence:
1. 在标准和高DPI显示器上测试拖拽标签页功能
2. 验证拖拽预览图像尺寸是否符合预期
3. 检查预览图像周围的阴影效果是否正确渲染
4. 在不同显示缩放设置下测试(100%、150%、200%)
5. 验证标签页拖拽功能保持流畅
BUG: https://pms.uniontech.com/bug-view-342405.html1 parent 77f27ba commit 79debd9
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | | - | |
551 | 549 | | |
552 | 550 | | |
553 | 551 | | |
| |||
557 | 555 | | |
558 | 556 | | |
559 | 557 | | |
560 | | - | |
561 | 558 | | |
562 | 559 | | |
563 | | - | |
564 | | - | |
565 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
566 | 563 | | |
567 | 564 | | |
568 | 565 | | |
| |||
591 | 588 | | |
592 | 589 | | |
593 | 590 | | |
594 | | - | |
595 | | - | |
| 591 | + | |
| 592 | + | |
596 | 593 | | |
597 | 594 | | |
598 | 595 | | |
| |||
0 commit comments