Skip to content

Commit

Permalink
Eliminate leftover scaling of physical dimensions by x10 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben9923 authored Jan 23, 2021
1 parent 525385e commit 0500cae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ IOReturn VoodooInputSimulatorDevice::getReport(IOMemoryDescriptor* report, IOHID
// Sensor Surface Width = 0x3cf0 (0xf0, 0x3c) = 15.600 cm
// Sensor Surface Height = 0x2b20 (0x20, 0x2b) = 11.040 cm

uint32_t rawWidth = engine->getPhysicalMaxX() * 10;
uint32_t rawHeight = engine->getPhysicalMaxY() * 10;
uint32_t rawWidth = engine->getPhysicalMaxX();
uint32_t rawHeight = engine->getPhysicalMaxY();

uint8_t rawWidthLower = rawWidth & 0xff;
uint8_t rawWidthHigher = (rawWidth >> 8) & 0xff;
Expand Down

0 comments on commit 0500cae

Please sign in to comment.