summaryrefslogtreecommitdiff
path: root/fb/fbstipple.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2006-08-01 13:45:43 -0700
committerAaron Plattner <aplattner@nvidia.com>2006-08-01 13:45:43 -0700
commitee02e647882a4be29e1130bd79904ee79ed6b802 (patch)
treef4a2d76b462019f4ea16a7c2004d257db6684ab6 /fb/fbstipple.c
parenta69335dc299be6de8b82ed34de1cb30f1255feb4 (diff)
Wrap libwfb memory access.
Use the READ and WRITE macros to wrap memory accesses that could be in video memory. Add MEMCPY_WRAPPED and MEMSET_WRAPPED macros to wrap memcpy and memset, respectively.
Diffstat (limited to 'fb/fbstipple.c')
-rw-r--r--fb/fbstipple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fb/fbstipple.c b/fb/fbstipple.c
index ce971481e..de8d1f814 100644
--- a/fb/fbstipple.c
+++ b/fb/fbstipple.c
@@ -155,7 +155,7 @@ fbEvenStipple (FbBits *dst,
/*
* Extract stipple bits for this scanline;
*/
- bits = *s;
+ bits = READ(s);
s += stipStride;
if (s == stipEnd)
s = stip;
@@ -199,12 +199,12 @@ fbEvenStipple (FbBits *dst,
n = nmiddle;
if (!and)
while (n--)
- *dst++ = xor;
+ WRITE(dst++, xor);
else
{
while (n--)
{
- *dst = FbDoRRop (*dst, and, xor);
+ WRITE(dst, FbDoRRop (READ(dst), and, xor));
dst++;
}
}