pkgsrc/games/xbill/patches/patch-ad
jmmv 49b85d994b Access static attributes through the class itself, not through an instance.
Should fix build problem reported in PR pkg/29452 by A L Meyers.
2005-06-14 17:03:37 +00:00

34 lines
1.1 KiB
Text

$NetBSD: patch-ad,v 1.1 2005/06/14 17:03:37 jmmv Exp $
--- UI.cc.orig 1997-01-23 17:22:51.000000000 +0100
+++ UI.cc
@@ -125,10 +125,10 @@ void UI::make_windows() {
void UI::popup_dialog (int dialog) {
Widget w;
switch (dialog) {
- case game.ENTERNAME: w = enternamebox; break;
- case game.HIGHSCORE: w = highscorebox; break;
- case game.SCORE: w = scorebox; break;
- case game.ENDGAME: w = endgamebox; break;
+ case Game::ENTERNAME: w = enternamebox; break;
+ case Game::HIGHSCORE: w = highscorebox; break;
+ case Game::SCORE: w = scorebox; break;
+ case Game::ENDGAME: w = endgamebox; break;
}
popup (NULL, &w, NULL);
}
@@ -139,11 +139,11 @@ void UI::popup_dialog (int dialog) {
void UI::set_cursor(int cursor) {
switch (cursor) {
- case game.BUCKETC:
+ case Game::BUCKETC:
XDefineCursor(display, window, bucket.cursor.cursor); break;
- case game.DOWNC:
+ case Game::DOWNC:
XDefineCursor(display, window, downcursor.cursor); break;
- case game.DEFAULTC:
+ case Game::DEFAULTC:
XDefineCursor(display, window, defaultcursor.cursor); break;
default:
XDefineCursor(display, window, OS.cursor[cursor].cursor);