[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-devel] Changes to qemacs/cfb.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-devel] Changes to qemacs/cfb.c |
Date: |
Wed, 11 May 2005 11:49:36 -0400 |
Index: qemacs/cfb.c
diff -u qemacs/cfb.c:1.1.1.1 qemacs/cfb.c:1.2
--- qemacs/cfb.c:1.1.1.1 Sat May 29 10:18:53 2004
+++ qemacs/cfb.c Wed May 11 15:49:36 2005
@@ -59,16 +59,16 @@
dest = cfb->base + y1 * cfb->wrap + x1 * 2;
if (color == QECOLOR_XOR) {
/* XXX: suppress this mess */
- for(y=0;y<h;y++) {
+ for (y = 0; y < h; y++) {
d = dest;
- for(n = w; n != 0; n--) {
+ for (n = w; n != 0; n--) {
((short *)d)[0] ^= 0xffff;
d += 2;
}
dest += cfb->wrap;
}
} else {
- for(y=0;y<h;y++) {
+ for (y = 0; y < h; y++) {
d = dest;
n = w;
@@ -108,16 +108,16 @@
dest = cfb->base + y1 * cfb->wrap + x1 * 4;
if (color == QECOLOR_XOR) {
/* XXX: suppress this mess */
- for(y=0;y<h;y++) {
+ for (y = 0; y < h; y++) {
d = dest;
- for(n = w; n != 0; n--) {
+ for (n = w; n != 0; n--) {
((short *)d)[0] ^= 0x00ffffff;
d += 4;
}
dest += cfb->wrap;
}
} else {
- for(y=0;y<h;y++) {
+ for (y = 0; y < h; y++) {
d = dest;
n = w;
while (n >= 4) {
@@ -312,7 +312,7 @@
cfb->depth = depth;
cfb->bpp = (depth + 7) / 8;
- switch(depth) {
+ switch (depth) {
case 15:
cfb->get_color = cfb15_get_color;
break;
@@ -325,7 +325,7 @@
break;
}
- switch(cfb->bpp) {
+ switch (cfb->bpp) {
case 2:
s->dpy.dpy_fill_rectangle = cfb16_fill_rectangle;
cfb->draw_glyph = cfb16_draw_glyph;
- [Qemacs-devel] Changes to qemacs/cfb.c,
Charlie Gordon <=