diff options
author | Ole Loots <ole@monochrom.net> | 2013-01-31 19:22:35 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-01-31 19:22:35 +0100 |
commit | 54f719aa960159c5b1978846223732c9669ca7fa (patch) | |
tree | d190c128e66a7d98a1e6f8d0e77477499627d928 /atari/plot/font_internal.c | |
parent | 577ff3cffc5fb99041c5da2d828b1f25cfb13dc9 (diff) | |
download | netsurf-54f719aa960159c5b1978846223732c9669ca7fa.tar.gz netsurf-54f719aa960159c5b1978846223732c9669ca7fa.tar.bz2 |
Some more finetuning...
Diffstat (limited to 'atari/plot/font_internal.c')
-rw-r--r-- | atari/plot/font_internal.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/atari/plot/font_internal.c b/atari/plot/font_internal.c index 6e6e330ef..3db29eba5 100644 --- a/atari/plot/font_internal.c +++ b/atari/plot/font_internal.c @@ -245,10 +245,18 @@ 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*)&fstyle->foreground, (unsigned short*)&out );
- vs_color(atari_plot_vdi_handle, OFFSET_CUSTOM_COLOR, (unsigned short*)&out[0] );
- plot_blit_mfdb(&loc, &tmp, OFFSET_CUSTOM_COLOR, PLOT_FLAG_TRANS ); + //unsigned short out[4]; + RGB1000 out;
+ //rgb_to_vdi1000( (unsigned char*)&fstyle->foreground, (unsigned short*)&out ); + out.blue = 0; + out.green = 1000; + out.red = 0; + vs_color(atari_plot_vdi_handle, OFFSET_CUSTOM_COLOR, (short *)&out); + vq_color(atari_plot_vdi_handle, OFFSET_CUSTOM_COLOR, 1, (short *)&out); + //printf("r:%d,g:%d,b:%d", out.red, out.green, out.blue); + //vsl_color(atari_plot_vdi_handle, OFFSET_CUSTOM_COLOR); + //vsf_color(atari_plot_vdi_handle, OFFSET_CUSTOM_COLOR);
+ plot_blit_mfdb(&loc, &tmp, OFFSET_CUSTOM_COLOR, PLOT_FLAG_TRANS); #ifdef WITH_8BPP_SUPPORT } else { unsigned char c = RGB_TO_VDI(fstyle->foreground); |