gdi/gpixmap: Simplify gRGB using union

Instead of shifting, just cast the rgb struct to integer instead.