Skip to main content
Carl Colijn
Participating Frequently
September 3, 2024
Question

Bug in PF_Event_ADJUST_CURSOR's reported coordinate on Windows + DPI

  • September 3, 2024
  • 3 replies
  • 262 views

In my After Effects style plugin for Premiere I have a custom UI parameter.  I handle it's draw, click, keydown and adjustCursor.  Today I found out that Premiere makes a mess out of the u.adjust_cursor.screen_point member when sending the PF_Event_ADJUST_CURSOR events on Windows when the monitor has a non-100% DPI setting.

 

  • Issue one: for each mouse move 2 PF_Event_ADJUST_CURSOR events are fired in succession; one with the coordinates as-is (in the same units as when drawing the param), one with those coordinates DPI adjusted (so when DPI is set to 250%, they're all 2.5 times as big).
  • For most of the param's surface the DPI adjusted version is sent first, but it seems there are stable areas where the order is reversed.
  • Issue two: when the cursor nears the left edge of the param (at around x ~= 75), there are areas where Premiere stops sending the as-is version of the events, only sending the DPI adjusted version.
  • Observation: PF_Event_DO_CLICK puts only regular, non-DPI adjusted coordinates in u.do_click.screen_point.

 

Needless to say that this messes up my calculations.  There seems to be no data I can use to work around this issue, right?  No way to detect what version of the event is sent?  If so, I could manually reverse the DPI-adjusted coordinates back to the normal units and be done with it.

 

This issue is present in version 24.5 (2024), but goes back at least to 13.1.5 (latest 2019 version), tested on Windows 10.  The Mac version of 24.5 doesn't seem to be affected.

This topic has been closed for replies.

3 replies

Kevin J. Monahan Jr.
Legend
September 3, 2024

Ah, I see. Since this is more of a developer question, let me route your post better. I'll move this issue to the Discussions forum and take it with "SDK." That should call the appropriate product team member to your post. PM me if you don't respond in the next few days.

 

Thanks!
Kevin

Kevin Monahan - Sr. Community and Engagement Strategist – Adobe Pro Video and Audio
Carl Colijn
Participating Frequently
September 3, 2024

Hi Kevin,

 

Thanks for you reply!  This issue is however not related to rendering in Premiere, but an issue I encountered when developing the code behind drawing a custom UI parameter in the effects control panel when working on an After Effects style plugin for Premiere.  It thus has nothing to do with the chosen media.  I did test it on both Premiere 2019 and 2024, both with all patches applied -- both showed the same behavior, so I assume the issue is present in all in-between versions too.

Kevin J. Monahan Jr.
Legend
September 3, 2024

Hello @Carl Colijn,

I'm Kevin from support, a mod here. Thanks for the bug report. I hope the team will respond shortly.

 

In the meantime, please provide further details about your case, if you can. Does this happen with all media or just certain kinds of media, for example. Does this happen in the 23.xx version? See, How do I write a bug report?

 

Sorry for the issue.

 

Thanks,
Kevin

Kevin Monahan - Sr. Community and Engagement Strategist – Adobe Pro Video and Audio