compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

The content will be deformed when I change the size of the window

Open LvQGit opened this issue 4 years ago • 12 comments

image image image

OS : Windows 7

LvQGit avatar Dec 10 '21 02:12 LvQGit

Could you please share your code, so we can reproduce it locally? Ideally-minimal snippet.

akurasov avatar Dec 10 '21 10:12 akurasov

Could you please share your code, so we can reproduce it locally? Ideally-minimal snippet.

I just cloned the examples project notepad and did not change any code.

LvQGit avatar Dec 10 '21 13:12 LvQGit

I see, thank you. Let me try it. BTW, do you have x86 or x64?

akurasov avatar Dec 10 '21 13:12 akurasov

Thanks, I only tried it on Windows 7 x64.

Sorry for my bad English, I might understand something wrong.

LvQGit avatar Dec 10 '21 13:12 LvQGit

Everything is fine) Last question - which JDK do you use?

akurasov avatar Dec 10 '21 13:12 akurasov

Tried both openjdk 16 and openjdk 15

LvQGit avatar Dec 10 '21 14:12 LvQGit

I tried it on two other Windows 7 computers. One works, the other cannot be opened at all. It seems that it can be opened after updating the universal CRT, not sure if it is because of the update.

For this issue, Is there also a problem with a runtime library installed, or what library should I install to run the project?

LvQGit avatar Dec 11 '21 03:12 LvQGit

It was solved by adding the code System.setProperty("skiko.renderApi", "SOFTWARE_FAST").

I tried DIRECT3D or OPENGL, but they didn't work properly on my computer.

LvQGit avatar Dec 16 '21 03:12 LvQGit

Yesterday I also tried it. I saw the following behavior - if I resize the image fast, it was indeed deformed, but only until the image was redrawn.

I tried DIRECT3D or OPENGL, but they didn't work properly on my computer. Both deform the window content at resizing?

akurasov avatar Dec 16 '21 08:12 akurasov

Yes, both of them deformed.

The console will print Failed to create DirectX12 device. And the click position is correct, but the rendering position is incorrect.

iss

LvQGit avatar Dec 16 '21 09:12 LvQGit

We will take a look at it further after NY, when Roman is back from vacation.

akurasov avatar Dec 16 '21 09:12 akurasov

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 16:08 okushnikov