• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • Delphi ASIO & VST Packages
  • Bugs
Delphi ASIO & VST Packages

Incorrect mouse coordinates in TGuiMidiKeys

Brought to you by: cwbudde
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Bugs
  • News
  • Discussion
  • Donate
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#7 Incorrect mouse coordinates in TGuiMidiKeys

open
nobody
Interface (example) (1)
5
2012-12-06
2012-02-10
Wouter van Nifterick
No

If you use any anti-aliasing mode other than 'gaaNone', the wrong keys will be highlighted if you move your mouse over the keys.

After making the following changes it works as expected:

DAV_GuiMidiKeys.pas, line 1230:
- if ScreenCoordOnKey(X, Y, i, CheckYPos) then
+ if ScreenCoordOnKey(X * OversamplingFactor, Y * OversamplingFactor, i, CheckYPos) then

DAV_GuiMidiKeys.pas, line 1507:

- if not ScreenCoordOnKey(X, 0, KeyNr, False) then Exit;
+ if not ScreenCoordOnKey(X* OversamplingFactor, 0, KeyNr, False) then Exit;

A modified file is attached...

regards,
Wouter

Discussion

  • Wouter van Nifterick

    Wouter van Nifterick - 2012-02-10
     
    DAV_GuiMidiKeys.pas
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.