qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs cfb.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs cfb.c
Date: Fri, 21 Apr 2017 10:50:53 -0400 (EDT)

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        17/04/21 10:50:53

Modified files:
        .              : cfb.c 

Log message:
        display: fixed compilation for linux

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/cfb.c?cvsroot=qemacs&r1=1.14&r2=1.15

Patches:
Index: cfb.c
===================================================================
RCS file: /sources/qemacs/qemacs/cfb.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- cfb.c       18 Apr 2017 09:14:55 -0000      1.14
+++ cfb.c       21 Apr 2017 14:50:53 -0000      1.15
@@ -145,15 +145,13 @@
     CFBContext *cfb = s->priv_data;
     unsigned char *dest, *d;
     int y, n;
-    unsigned int col;
-
-    col = cfb->get_color(color);
+    unsigned int col = 0x00ffffff;
 
     dest = cfb->base + y1 * cfb->wrap + x1 * 4;
     for (y = 0; y < h; y++) {
         d = dest;
         for (n = w; n != 0; n--) {
-            ((uint32_t *)(void *)d)[0] ^= 0x00ffffff;
+            ((uint32_t *)(void *)d)[0] ^= col;
             d += 4;
         }
         dest += cfb->wrap;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]