Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/usermode Rename variable Bpp to bytes_per_...



details:   https://anonhg.NetBSD.org/src/rev/453998af8b16
branches:  trunk
changeset: 772333:453998af8b16
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Dec 30 11:05:07 2011 +0000

description:
Rename variable Bpp to bytes_per_pixel

diffstat:

 sys/arch/usermode/usermode/thunk.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r 364bc62bc289 -r 453998af8b16 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c        Fri Dec 30 11:04:50 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c        Fri Dec 30 11:05:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.58 2011/12/30 11:00:01 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.59 2011/12/30 11:05:07 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.58 2011/12/30 11:00:01 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.59 2011/12/30 11:05:07 reinoud Exp $");
 #endif
 
 #include <sys/types.h>
@@ -992,7 +992,7 @@
        uint8_t rfb_update[16];
        uint8_t *p;
        unsigned int n;
-       unsigned int Bpp;
+       unsigned int bytes_per_pixel;
        ssize_t stride, line_len, len;
 
        if (rfb->connected == false || rfb->nupdates == 0)
@@ -1020,8 +1020,8 @@
        if (len < 0)
                goto disco;
 
-       Bpp = rfb->depth / 8;
-       stride = rfb->width * Bpp;
+       bytes_per_pixel = rfb->depth / 8;
+       stride = rfb->width * bytes_per_pixel;
        for (n = 0; n < rfb->nupdates; n++) {
                p = rfb_update;
                update = &rfb->update[n];
@@ -1040,8 +1040,8 @@
                if (len < 0)
                        goto disco;
 
-               p = rfb->framebuf + (update->y * stride) + (update->x * Bpp);
-               line_len = update->w * Bpp;
+               p = rfb->framebuf + (update->y * stride) + (update->x * bytes_per_pixel);
+               line_len = update->w * bytes_per_pixel;
                while (update->h-- > 0) {
                        len = safe_send(rfb->clientfd, p, line_len);
                        if (len < 0)



Home | Main Index | Thread Index | Old Index