blob: 793ac452416ea14b90073b5466fcb8eb8986bcf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-xgraphics.c,v 1.3 2015/12/29 23:34:56 dholland Exp $
Fix a number of cases of plainly invalid C and portability issues.
--- xgraphics.c.orig 2007-12-05 21:00:23.000000000 +0000
+++ xgraphics.c
@@ -314,7 +314,7 @@ void check_X11_stop() {
int get_button()
{
- checkX;
+ checkX2(-1);
placate_x();
@@ -323,7 +323,7 @@ int get_button()
int get_mouse_x()
{
- checkX;
+ checkX2(-1);
placate_x();
@@ -333,7 +333,7 @@ int get_mouse_x()
int get_mouse_y()
{
- checkX;
+ checkX2(-1);
placate_x();
|