Skip to content

Commit 1403311

Browse files
committed
(#6) Updated call signature of highlight
1 parent a17e0b7 commit 1403311

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/screen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ bool pointVisibleOnMainDisplay(MMPoint point)
3333
return point.x < displaySize.width && point.y < displaySize.height;
3434
}
3535

36-
void highlight(int x, int y, int width, int height, int duration, float opacity) {
36+
void highlight(int32_t x, int32_t y, int32_t width, int32_t height, long duration, float opacity) {
3737
showHighlightWindow(x, y, width, height, duration, opacity);
3838
}

src/screen.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#ifndef SCREEN_H
33
#define SCREEN_H
44

5+
#include <stdint.h>
56
#include "types.h"
67

78
#if defined(_MSC_VER)
@@ -22,7 +23,7 @@ MMSize getMainDisplaySize(void);
2223
* of the main screen. */
2324
bool pointVisibleOnMainDisplay(MMPoint point);
2425

25-
void highlight(int x, int y, int width, int height, int duration, float opacity);
26+
void highlight(int32_t x, int32_t y, int32_t width, int32_t height, long duration, float opacity);
2627

2728
#ifdef __cplusplus
2829
}

0 commit comments

Comments
 (0)