Skip to content

Commit

Permalink
HMH bug: ignore wacom's tablet resolution. NOTE: This breaks high-DPI…
Browse files Browse the repository at this point in the history
… devices... will remove it later:
  • Loading branch information
serge-rgb committed Jun 3, 2017
1 parent 8663ff4 commit 8fdcd87
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Milton.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

[Setup]
AppName=Milton
AppVersion=1.4.0
AppVersion=1.4.1
DefaultDirName={pf}\Milton
DefaultGroupName=Milton
;UninstallDisplayIcon={app}\Milton.exe
Compression=lzma2
SolidCompression=yes
OutputBaseFilename=MiltonSetup_1.4.0_x64
OutputBaseFilename=MiltonSetup_1.4.1_x64
;ArchitecturesAllowed=x64
;ArchitecturesInstallIn64BitMode=x64
ChangesAssociations=yes
Expand Down
11 changes: 9 additions & 2 deletions src/easytab.h
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ EasyTabResult EasyTab_Load(Display* Disp, Window Win)
else { return EASYTAB_X11_ERROR; }
}


#ifdef MILTON_EASYTAB
EasyTabResult EasyTab_HandleEvent(XEvent* Event)
{
Expand Down Expand Up @@ -909,6 +910,7 @@ EasyTabResult EasyTab_Load_Ex(HWND Window,
EasyTab = (EasyTabInfo*)calloc(1, sizeof(EasyTabInfo)); // We want init to zero, hence calloc.
if (!EasyTab) { return EASYTAB_MEMORY_ERROR; }


// Load Wintab DLL and get function addresses
{
EasyTab->Dll = LoadLibraryA("Wintab32.dll");
Expand Down Expand Up @@ -1013,16 +1015,21 @@ EasyTabResult EasyTab_Load_Ex(HWND Window,
float SysExtX = LogContext.lcSysExtX;
float SysExtY = LogContext.lcSysExtY;

#if 0
if (SysExtX != 0 && SysExtY != 0)
{
EasyTab->ScreenAreaRatioX = (float)CoordRangeX/SysExtX;
EasyTab->ScreenAreaRatioY = (float)CoordRangeY/SysExtY;
}
else
{
EasyTab->ScreenAreaRatioX = 1;
EasyTab->ScreenAreaRatioY = 1;
EasyTab->ScreenAreaRatioX = 1 * scale;
EasyTab->ScreenAreaRatioY = 1 * scale;
}
#else
EasyTab->ScreenAreaRatioX = 1;
EasyTab->ScreenAreaRatioY = 1;
#endif

if (TrackingMode == EASYTAB_TRACKING_MODE_RELATIVE)
{
Expand Down
2 changes: 1 addition & 1 deletion src/milton_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define MILTON_MAJOR_VERSION 1
#define MILTON_MINOR_VERSION 4
#define MILTON_MICRO_VERSION 1
#define MILTON_MICRO_VERSION 2

#define MILTON_DEBUG 1

Expand Down
2 changes: 1 addition & 1 deletion src/platform_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ perf_counter()
timespec tp;
int res = clock_gettime(CLOCK_REALTIME, &tp);

// TODO: Check errno and provide more informations
// TODO: Check errno and provide more information
if ( res ) {
milton_log("Something went wrong with clock_gettime\n");
}
Expand Down

0 comments on commit 8fdcd87

Please sign in to comment.