Navigation Menu

Skip to content

Commit

Permalink
add uint constructor for RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
mgehre committed Jul 4, 2011
1 parent bdfb927 commit dc8b193
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/swftypes.h
Expand Up @@ -522,6 +522,7 @@ class RGB
public:
RGB(){};
RGB(int r,int g, int b):Red(r),Green(g),Blue(b){};
RGB(uint color):Red((color>>16)&0xFF),Green((color>>8)&0xFF),Blue(color&0xFF){}
UI8 Red;
UI8 Green;
UI8 Blue;
Expand Down

0 comments on commit dc8b193

Please sign in to comment.