Skip to main content



      Home
Home » Modeling » Graphiti » Blurry context buttons on subsequent use
Blurry context buttons on subsequent use [message #1852862] Wed, 08 June 2022 14:59 Go to next message
Eclipse UserFriend
Hi,
we have in the BPMN2 forum a question about a strange blurry effect:

https://www.eclipse.org/forums/index.php/t/1110917/

Do you have an idea how this can happen?

===
Ralph
Re: Blurry context buttons on subsequent use [message #1852905 is a reply to message #1852862] Fri, 10 June 2022 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralph,

sorry, but I have not seen that before in Graphiti, also my tests using the test tools do not show that behavior. In my test installation based on Eclipe 2022-03 the context buttons always appeared correctly.

What we use here is basically pure GEF 3 functionality. Not sure if that will bring a result, but you may try to ask in their forum.

- Michael
Re: Blurry context buttons on subsequent use [message #1873274 is a reply to message #1852862] Tue, 10 December 2024 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I encounter the same problem on MacOS aarch64 (I don't know about MacOS x86).
I don't have the problem on Windows.

---
Christophe
Re: Blurry context buttons on subsequent use [message #1873328 is a reply to message #1873274] Thu, 12 December 2024 02:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christophe,

thanks for the update here!

Unfortunately, I don't have a Mac to check this. Maybe Ralph, if you are still following this, can you state if that happened for you also on Mac?

- Michael
Re: Blurry context buttons on subsequent use [message #1873331 is a reply to message #1873328] Thu, 12 December 2024 02:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,
The bug is caused by the constructor of org.eclipse.swt.graphics.Image#Image(org.eclipse.swt.graphics.Device, org.eclipse.swt.graphics.Image, int), used in ContextButton class.
Using this constructor, the base image is degraded.
It is a SWT bug on MacOS.
I will report it on SWT GitHub today or tomorrow.

In the meantime, I was able to work around the bug in my fork of Graphiti.

I replaced that...

Image image;
if (!isEnabled()) {
	image = new Image(originalImage.getDevice(), originalImage, SWT.IMAGE_DISABLE);
} else {
	if (originalImage == null) {
		return;
	}
	image = new Image(originalImage.getDevice(), originalImage, SWT.IMAGE_COPY);
}


... with

if (originalImage == null) {
          return;
      }
Image image;
if (!isEnabled()) {
          final Image tmpImage = new Image(originalImage.getDevice(), originalImage.getImageData());
          image = new Image(originalImage.getDevice(), tmpImage, SWT.IMAGE_DISABLE);
          tmpImage.dispose();
} else {
	image = new Image(originalImage.getDevice(), originalImage.getImageData());
}


---
Christophe
Re: Blurry context buttons on subsequent use [message #1873334 is a reply to message #1873328] Thu, 12 December 2024 02:56 Go to previous messageGo to next message
Eclipse UserFriend
no sorry I do no longer follow this issue. I can't give any useful input here.
Re: Blurry context buttons on subsequent use [message #1873337 is a reply to message #1873331] Thu, 12 December 2024 04:43 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Ralph and Christophe for the updates.

Christophe: great that you found that. Could you please post the link to the ticket here once you have created it?

- Michael
Re: Blurry context buttons on subsequent use [message #1873343 is a reply to message #1873337] Thu, 12 December 2024 05:39 Go to previous message
Eclipse UserFriend
I just created the ticket:

https://github.com/eclipse-platform/eclipse.platform.swt/issues/1649

---
Christophe
Previous Topic:Official Graphiti 0.19.3 Release
Next Topic:[Mac] Rectangle of Shape is not filled if y < 0
Goto Forum:
  


Current Time: Sat Apr 26 17:33:42 EDT 2025

Powered by FUDForum. Page generated in 0.04356 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top