From 656b85eb8c07f1fbba9265816218b7cb0772d3b1 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 16 Nov 2006 01:27:08 +0000 Subject: [PATCH] fix red-green confusion --- panda/src/osxdisplay/osxGraphicsPipe.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/osxdisplay/osxGraphicsPipe.cxx b/panda/src/osxdisplay/osxGraphicsPipe.cxx index d021b98e0f..9a77b6aa95 100644 --- a/panda/src/osxdisplay/osxGraphicsPipe.cxx +++ b/panda/src/osxdisplay/osxGraphicsPipe.cxx @@ -144,8 +144,8 @@ create_cg_image(const PNMImage &pnm_image) { if (is_grayscale) { *dp++ = (xelval)(pnm_image.get_gray(xi, yi) * PGM_MAXMAXVAL); } else { - *dp++ = (xelval)(pnm_image.get_green(xi, yi) * PGM_MAXMAXVAL); *dp++ = (xelval)(pnm_image.get_red(xi, yi) * PGM_MAXMAXVAL); + *dp++ = (xelval)(pnm_image.get_green(xi, yi) * PGM_MAXMAXVAL); *dp++ = (xelval)(pnm_image.get_blue(xi, yi) * PGM_MAXMAXVAL); } if (has_alpha) {