- Fix build on alpha
PR: ports/62096 Submitted by: maintainer Noticed by: bento via kris
This commit is contained in:
parent
8ed3a1bc1c
commit
44f74845e2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99474
2 changed files with 26 additions and 0 deletions
13
games/wesnoth-devel/files/patch-src::widgets::menu.cpp
Normal file
13
games/wesnoth-devel/files/patch-src::widgets::menu.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- src/widgets/menu.cpp.orig Thu Jan 29 22:23:06 2004
|
||||
+++ src/widgets/menu.cpp Thu Jan 29 22:23:49 2004
|
||||
@@ -191,8 +191,8 @@
|
||||
x = event.button.x;
|
||||
y = event.button.y;
|
||||
} else {
|
||||
- x = reinterpret_cast<int>(event.user.data1);
|
||||
- y = reinterpret_cast<int>(event.user.data2);
|
||||
+ x = (int)event.user.data1;
|
||||
+ y = (int)event.user.data2;
|
||||
}
|
||||
|
||||
const int item = hit(x,y);
|
13
games/wesnoth/files/patch-src::widgets::menu.cpp
Normal file
13
games/wesnoth/files/patch-src::widgets::menu.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- src/widgets/menu.cpp.orig Thu Jan 29 22:23:06 2004
|
||||
+++ src/widgets/menu.cpp Thu Jan 29 22:23:49 2004
|
||||
@@ -191,8 +191,8 @@
|
||||
x = event.button.x;
|
||||
y = event.button.y;
|
||||
} else {
|
||||
- x = reinterpret_cast<int>(event.user.data1);
|
||||
- y = reinterpret_cast<int>(event.user.data2);
|
||||
+ x = (int)event.user.data1;
|
||||
+ y = (int)event.user.data2;
|
||||
}
|
||||
|
||||
const int item = hit(x,y);
|
Loading…
Reference in a new issue