Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2016-03-11 14:51:36 +0000
committerMarkus Keller2016-03-11 14:51:36 +0000
commitd8febb48a827d73a005c30914a5162f6a28639bb (patch)
tree0ab295d49ec844c66b7a25223bcad8d09abd7b04
parentda5053e1e893e182d68066918451c782dcdba8bd (diff)
downloadeclipse.platform.swt-d8febb48a827d73a005c30914a5162f6a28639bb.tar.gz
eclipse.platform.swt-d8febb48a827d73a005c30914a5162f6a28639bb.tar.xz
eclipse.platform.swt-d8febb48a827d73a005c30914a5162f6a28639bb.zip
High DPI: TableItem images were cut at right; copied changes from TreeItem
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java
index e2fd68cff1..51db5f90b5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java
@@ -763,7 +763,7 @@ Rectangle getTextBoundsInPixels (int index) {
Image image = _getImage(index);
int imageWidth = 0;
if (image != null) {
- imageWidth = image.getBounds ().width;
+ imageWidth = image.getBoundsInPixels ().width;
}
if (x [0] < imageWidth) {
rect.x += imageWidth;
@@ -1166,8 +1166,8 @@ public void setImage (int index, Image image) {
OS.gtk_cell_renderer_get_fixed_size (pixbufRenderer, currentWidth, currentHeight);
if (!parent.pixbufSizeSet) {
if (image != null) {
- int iWidth = image.getBounds ().width;
- int iHeight = image.getBounds ().height;
+ int iWidth = image.getBoundsInPixels ().width;
+ int iHeight = image.getBoundsInPixels ().height;
if (iWidth > currentWidth [0] || iHeight > currentHeight [0]) {
OS.gtk_cell_renderer_set_fixed_size (pixbufRenderer, iWidth, iHeight);
parent.pixbufSizeSet = true;

Back to the top