summaryrefslogtreecommitdiff
path: root/atari/plot/plotter.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-02-01 21:27:29 +0000
committerOle Loots <ole@monochrom.net>2011-02-01 21:27:29 +0000
commitc59b173d21074474b5267f3d39c56302855367df (patch)
tree6923d75288af429a0a0e546eeef4ad621fb38c15 /atari/plot/plotter.c
parentd2072648c783f69e1ca748ba63e4997a5d5dbd2d (diff)
downloadnetsurf-c59b173d21074474b5267f3d39c56302855367df.tar.gz
netsurf-c59b173d21074474b5267f3d39c56302855367df.tar.bz2
Improved drawing primitives for true color systems.
svn path=/trunk/netsurf/; revision=11592
Diffstat (limited to 'atari/plot/plotter.c')
-rwxr-xr-xatari/plot/plotter.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/atari/plot/plotter.c b/atari/plot/plotter.c
index 712499a77..6f9ba750e 100755
--- a/atari/plot/plotter.c
+++ b/atari/plot/plotter.c
@@ -642,10 +642,9 @@ void dump_font_drivers(void)
*/
void rgb_to_vdi1000( unsigned char * in, unsigned short * out )
{
-
- double r = ((double)in[0]/255); /* prozentsatz red */
- double g = ((double)in[1]/255); /* prozentsatz green */
- double b = ((double)in[2]/255); /* prozentsatz blue */
+ double r = ((double)in[3]/255); /* prozentsatz red */
+ double g = ((double)in[2]/255); /* prozentsatz green */
+ double b = ((double)in[1]/255); /* prozentsatz blue */
out[0] = 1000 * r + 0.5;
out[1] = 1000 * g + 0.5;
out[2] = 1000 * b + 0.5;