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.2 2005/05/06 00:03:25 salo Exp $
--- src/px/video.cc 2003-07-31 09:28:04.000000000 +0200
+++ src/px/video.cc 2004-11-11 00:04:26.855388248 +0100
@@ -207,16 +207,16 @@
void set_pixels(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;
}
}
}
|