summaryrefslogtreecommitdiff
path: root/games/enigma/patches/patch-an
blob: f3b03daebd1f1bf1aa78549a855708ac7dbbe966 (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
$NetBSD: patch-an,v 1.3 2005/08/22 15:35:37 adam Exp $

--- src/px/video.cc.orig	2004-12-30 13:21:35.000000000 +0000
+++ src/px/video.cc
@@ -177,16 +177,16 @@ namespace
 
         void set_pixels(const GS &gs, int n, const int* xlist, const int* ylist, Uint32 color) {
             const int *xp = xlist, *yp = ylist;
-            if (NOCLIP(gs)) {
+            if (NOCLIP(this->gs)) {
                 for (int i=n; i > 0; --i) {
                     int x = *xp++, y = *yp++;
-                    *pixel_pointer(x,y) = gs.pcolor;
+                    *pixel_pointer(x,y) = this->gs.pcolor;
                 }
             } else {
                 for (int i=n; i > 0; --i) {
                     int x = *xp++, y = *yp++;
-                    if (clip_pixel (gs, x, y))
-                        *pixel_pointer(x,y) = gs.pcolor;
+                    if (clip_pixel (this->gs, x, y))
+                        *pixel_pointer(x,y) = this->gs.pcolor;
                 }
             }
         }