summaryrefslogtreecommitdiff
path: root/atari/plot/font_freetype.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-01-31 19:22:35 +0100
committerOle Loots <ole@monochrom.net>2013-01-31 19:22:35 +0100
commit54f719aa960159c5b1978846223732c9669ca7fa (patch)
treed190c128e66a7d98a1e6f8d0e77477499627d928 /atari/plot/font_freetype.c
parent577ff3cffc5fb99041c5da2d828b1f25cfb13dc9 (diff)
downloadnetsurf-54f719aa960159c5b1978846223732c9669ca7fa.tar.gz
netsurf-54f719aa960159c5b1978846223732c9669ca7fa.tar.bz2
Some more finetuning...
Diffstat (limited to 'atari/plot/font_freetype.c')
-rwxr-xr-xatari/plot/font_freetype.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/atari/plot/font_freetype.c b/atari/plot/font_freetype.c
index 2339cd659..8db7cc2c0 100755
--- a/atari/plot/font_freetype.c
+++ b/atari/plot/font_freetype.c
@@ -607,9 +607,10 @@ static int text( FONT_PLOTTER self, int x, int y, const char *text, size_t leng
#ifdef WITH_8BPP_SUPPORT
if( app.nplanes > 8 ){
#endif
- unsigned short out[4];
- rgb_to_vdi1000( (unsigned char*)&c, (unsigned short*)&out );
- vs_color(atari_plot_vdi_handle, OFFSET_CUSTOM_COLOR, (unsigned short*)&out[0]);
+ RGB1000 out;
+ rgb_to_vdi1000( (unsigned char*)&c, &out);
+ vs_color(atari_plot_vdi_handle, OFFSET_CUSTOM_COLOR,
+ (unsigned short*)&out);
#ifdef WITH_8BPP_SUPPORT
} else {
c = RGB_TO_VDI(c);