blob: 5df590e9a4d509eae5d56063ae3cf45c1edfcc51 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
void
libglitter_reorder_rasters(void **rasters, enum libglitter_colour colour1,
enum libglitter_colour colour2, enum libglitter_colour colour3)
{
void *channel1 = rasters[colour1];
void *channel2 = rasters[colour2];
void *channel3 = rasters[colour3];
rasters[0] = channel1;
rasters[1] = channel2;
rasters[2] = channel3;
}
|