move the typedef of nscolor to gfx_color in to gfxcompat.h. change the typedef of gfx_color to PRUint32 from unsigned long just to make it explicit
git-svn-id: svn://10.0.0.236/trunk@84548 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6805e63b38
commit
235a6fc931
@ -60,11 +60,9 @@ typedef float gfx_angle;
|
||||
* A color is a 32 bit unsigned integer with
|
||||
* four components: R, G, B and A.
|
||||
*
|
||||
* @var typedef unsigned long gfx_color
|
||||
* @var typedef PRUint32 gfx_color
|
||||
*/
|
||||
typedef unsigned long gfx_color;
|
||||
|
||||
typedef gfx_color nscolor;
|
||||
typedef PRUint32 gfx_color;
|
||||
|
||||
/**
|
||||
* typedef that should be used for bit depths
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
#ifdef GFX2_ONLY
|
||||
typedef gfx_coord nscoord;
|
||||
typedef gfx_color nscolor;
|
||||
// add these later, work out the include deps, etc.
|
||||
//typedef nsRect2 nsRect;
|
||||
//typedef nsSize2 nsSize2;
|
||||
|
||||
@ -60,11 +60,9 @@ typedef float gfx_angle;
|
||||
* A color is a 32 bit unsigned integer with
|
||||
* four components: R, G, B and A.
|
||||
*
|
||||
* @var typedef unsigned long gfx_color
|
||||
* @var typedef PRUint32 gfx_color
|
||||
*/
|
||||
typedef unsigned long gfx_color;
|
||||
|
||||
typedef gfx_color nscolor;
|
||||
typedef PRUint32 gfx_color;
|
||||
|
||||
/**
|
||||
* typedef that should be used for bit depths
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
#ifdef GFX2_ONLY
|
||||
typedef gfx_coord nscoord;
|
||||
typedef gfx_color nscolor;
|
||||
// add these later, work out the include deps, etc.
|
||||
//typedef nsRect2 nsRect;
|
||||
//typedef nsSize2 nsSize2;
|
||||
|
||||
@ -60,11 +60,9 @@ typedef float gfx_angle;
|
||||
* A color is a 32 bit unsigned integer with
|
||||
* four components: R, G, B and A.
|
||||
*
|
||||
* @var typedef unsigned long gfx_color
|
||||
* @var typedef PRUint32 gfx_color
|
||||
*/
|
||||
typedef unsigned long gfx_color;
|
||||
|
||||
typedef gfx_color nscolor;
|
||||
typedef PRUint32 gfx_color;
|
||||
|
||||
/**
|
||||
* typedef that should be used for bit depths
|
||||
|
||||
@ -31,7 +31,7 @@ interface nsIDrawable;
|
||||
*
|
||||
* @author Tim Rowley <tor@cs.brown.edu>
|
||||
* @author Stuart Parmenter <pavlov@netscape.com>
|
||||
* @version 1.1
|
||||
* @version 1.2
|
||||
* @see "gfx2"
|
||||
*/
|
||||
[scriptable, uuid(5e8405a4-1dd2-11b2-8385-bc8e3446cad3)]
|
||||
@ -83,6 +83,9 @@ interface nsIImage : nsISupports
|
||||
|
||||
readonly attribute unsigned long bytesPerRow;
|
||||
|
||||
/**
|
||||
* returns the number of bytes allocated for the image
|
||||
*/
|
||||
readonly attribute unsigned long bitsLength;
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user