File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 10
10
/* Some generic, cross-platform types. */
11
11
12
12
struct _MMPoint {
13
- size_t x ;
14
- size_t y ;
13
+ int64_t x ;
14
+ int64_t y ;
15
15
};
16
16
17
17
typedef struct _MMPoint MMPoint ;
18
18
19
19
struct _MMSize {
20
- size_t width ;
21
- size_t height ;
20
+ int64_t width ;
21
+ int64_t height ;
22
22
};
23
23
24
24
typedef struct _MMSize MMSize ;
@@ -30,23 +30,23 @@ struct _MMRect {
30
30
31
31
typedef struct _MMRect MMRect ;
32
32
33
- H_INLINE MMPoint MMPointMake (size_t x , size_t y )
33
+ H_INLINE MMPoint MMPointMake (int64_t x , int64_t y )
34
34
{
35
35
MMPoint point ;
36
36
point .x = x ;
37
37
point .y = y ;
38
38
return point ;
39
39
}
40
40
41
- H_INLINE MMSize MMSizeMake (size_t width , size_t height )
41
+ H_INLINE MMSize MMSizeMake (int64_t width , int64_t height )
42
42
{
43
43
MMSize size ;
44
44
size .width = width ;
45
45
size .height = height ;
46
46
return size ;
47
47
}
48
48
49
- H_INLINE MMRect MMRectMake (size_t x , size_t y , size_t width , size_t height )
49
+ H_INLINE MMRect MMRectMake (int64_t x , int64_t y , int64_t width , int64_t height )
50
50
{
51
51
MMRect rect ;
52
52
rect .origin = MMPointMake (x , y );
@@ -68,6 +68,8 @@ typedef int64_t PID;
68
68
69
69
#define MMPointFromPOINT (p ) MMPointMake((size_t)p.x, (size_t)p.y)
70
70
71
+ typedef int64_t WindowHandle ;
72
+
71
73
#endif
72
74
73
75
#endif /* TYPES_H */
You can’t perform that action at this time.
0 commit comments