Replace bitsperpixel' by
log2_bpp' for thats the value that is in it
and not the number of bits per pixel !
This commit is contained in:
parent
e8f67fd5b7
commit
adbed15428
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vidc.h,v 1.10 2001/02/25 17:17:55 reinoud Exp $ */
|
||||
/* $NetBSD: vidc.h,v 1.11 2001/03/20 12:52:03 reinoud Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994,1995 Mark Brinicombe.
|
||||
@ -220,7 +220,7 @@ struct vidc_mode {
|
||||
int pixel_rate;
|
||||
int hswr, hbsr, hdsr, hder, hber, hcr;
|
||||
int vswr, vbsr, vdsr, vder, vber, vcr;
|
||||
int bitsperpixel;
|
||||
int log2_bpp;
|
||||
int sync_pol;
|
||||
int frame_rate;
|
||||
};
|
||||
@ -240,7 +240,7 @@ typedef struct
|
||||
|
||||
#define XRES mode.hder
|
||||
#define YRES mode.vder
|
||||
#define BITSPERPIXEL mode.bitsperpixel
|
||||
#define NUMCOLOURS (1 << mode.log2_bpp)
|
||||
|
||||
struct vidc_info
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user