piopawlu / pda-injector

Condor 2 PDA Injector
GNU Lesser General Public License v2.1
6 stars 0 forks source link

XCSoar screen is smaller than the PDA screen of the glider #3

Closed rdevries1965 closed 4 months ago

rdevries1965 commented 4 months ago

When I run version 4 or 5 the XCSoar screren projected on page 3 of the PDA is much smaller compared to the PDA screen. The not used part of the PDA screen is flickering. example

piopawlu commented 4 months ago

What version of Condor are you running? Can you share your config file? Does the XCSoar window get auto-resized when starting?

rdevries1965 commented 4 months ago

Hi,

I am running Condor 2.2.0. What config file do you need ? Does the XCSoar window get auto-resized when starting? Yes I think it does. It opens XCSOar.exe with an -portrait command.

I have tested without -portait command in the startup and the issue remains.

Best regards,

Ronald


Van: Piotr @.> Verzonden: vrijdag 28 juni 2024 21:38 Aan: piopawlu/pda-injector @.> CC: rdevries1965 @.>; Author @.> Onderwerp: Re: [piopawlu/pda-injector] XCSoar screen is smaller than the PDA screen of the glider (Issue #3)

What version of Condor are you running? Can you share your config file? Does the XCSoar window get auto-resized when starting?

— Reply to this email directly, view it on GitHubhttps://github.com/piopawlu/pda-injector/issues/3#issuecomment-2197518930, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL34F3WSVVT6NHYSB5FMCXDZJW3SNAVCNFSM6AAAAABKCEJT3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJXGUYTQOJTGA. You are receiving this because you authored the thread.

piopawlu commented 4 months ago

Are you using any other patches or modifications? What glider is it? I haven't seen any with a LXNAV branded textures but I don't own all the extra gliders. I wanted to take a look at the pda.ini file where the injector is configured.

rdevries1965 commented 4 months ago

I am using the latest Condor version. Tests initially done with VR and also with VR. Same result. Used the ASW28 and Cirrus. The pda.ini from the Condor2 folder contains the following: [app] window=XCSoar

Uncomment if you want to enable input passing to the target app

pass_input=true

If enabled, will pass all keys to the target app as long as shift key is held down

pass_all_with_shift=false

If pass_input is enabled above, you can enter up to 32 virtualkey codes that you want passed or mapped if you use VK1:VK2

You can read the list of Virtual Keys at https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

pass_key_1=0x4E:0x28 ; N -> down

pass_key_2=0x48:0x25 ; H -> left

pass_key_3=0x55:0x26 ; U -> up

pass_key_4=0x4B:0x27 ; K -> right

pass_key_5=0x4D:0x28 ; M -> down

pass_key_6=0x4A:0x28 ; J -> enter

pass_key_7=0x59:0x1B ; Y -> ESC

pass_key_8=0x4A:0x0D ; J -> ENTER

[pda] enabled=true page=2 swap_colours=true show_waiting_screen=true

piopawlu commented 4 months ago

When you run it without the XCSoar (keeping the config as it is) does the "waiting screen" show full size or is it also only taking a part of the PDA? To me it seems that XCSoar window cannot be automatically resized to the correct size (due to arguments passed to it) so it is not big enough to be copied.

rdevries1965 commented 4 months ago

Hi,

See printscreen, looks like full PDA to me...

Ronald [cid:14addd83-51b6-420e-8b34-1e056c0f2a15]


Van: Piotr @.> Verzonden: woensdag 3 juli 2024 18:59 Aan: piopawlu/pda-injector @.> CC: rdevries1965 @.>; Author @.> Onderwerp: Re: [piopawlu/pda-injector] XCSoar screen is smaller than the PDA screen of the glider (Issue #3)

When you run it without the XCSoar (keeping the config as it is) does the "waiting screen" show full size or is it also only taking a part of the PDA? To me it seems that XCSoar window cannot be automatically resized to the correct size (due to arguments passed to it) so it is not big enough to be copied.

— Reply to this email directly, view it on GitHubhttps://github.com/piopawlu/pda-injector/issues/3#issuecomment-2206799506, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL34F3RNAWALA72QLAEXXX3ZKQUV7AVCNFSM6AAAAABKCEJT3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWG44TSNJQGY. You are receiving this because you authored the thread.Message ID: @.***>

rdevries1965 commented 4 months ago

PDA waiting

attached file

piopawlu commented 4 months ago

Yeah, then it’s down to XCSoar preventing window size change. Try to start XCSoar without any arguments and see if that helps.

rdevries1965 commented 4 months ago

It did not change but when I resize the XCSOar window on the desktop the PDA follows and I was able to resize to fully use the secreen. Works for me. PDA repaired

piopawlu commented 4 months ago

Given that you’re okay with the solution I’ll close this issue.

holmesal commented 4 months ago

FYI - I had a similar issue on a high-resolution display (the rendered XCSoar was only taking up about half of the available PDA space), and I wasn't able to resize the XCSoar window without it snapping back. Unchecking "High DPI Scaling Override" in the Condor shortcut compatibility settings fixed it for me, and as a bonus, my Condor UI is no longer tiny. Described in this thread: https://www.condorsoaring.com/forums/viewtopic.php?t=18297#p158066