diff options
author | Ole Loots <ole@monochrom.net> | 2011-01-22 16:43:51 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-01-22 16:43:51 +0000 |
commit | c0c423fbcab22476ec90be202d8ad887cd441148 (patch) | |
tree | 06a38dcf8728fe949b334538fbb2bf65601c8642 /atari/plot/plotter.c | |
parent | b8f40265f461dd67883b15b5bc9a7cccd13ce25b (diff) | |
download | netsurf-c0c423fbcab22476ec90be202d8ad887cd441148.tar.gz netsurf-c0c423fbcab22476ec90be202d8ad887cd441148.tar.bz2 |
Improved compatibility with classic TOS systems.
svn path=/trunk/netsurf/; revision=11450
Diffstat (limited to 'atari/plot/plotter.c')
-rw-r--r-- | atari/plot/plotter.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/atari/plot/plotter.c b/atari/plot/plotter.c index d21b46540..a54c15f6d 100644 --- a/atari/plot/plotter.c +++ b/atari/plot/plotter.c @@ -34,7 +34,11 @@ #include "atari/plot/plotter_vdi.h"
#include "atari/plot/font_vdi.h"
#include "atari/plot/font_freetype.h"
+#include "atari/gui.h"
#include "utils/log.h"
+#include "atari/misc.h"
+
+extern unsigned short gdosversion;
unsigned char rgb_web_pal[216][3] = {
@@ -141,7 +145,7 @@ struct s_vdi_sysinfo * read_vdi_sysinfo( short vdih, struct s_vdi_sysinfo * info memset( info, 0, sizeof(struct s_vdi_sysinfo) );
info->vdi_handle = vdih;
- if ( Getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND ) {
+ if ( tos_getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND ) {
info->EdDiVersion = 0;
} else {
info->EdDiVersion = EdDI_version( (void *)cookie_EdDI );
@@ -187,7 +191,7 @@ struct s_vdi_sysinfo * read_vdi_sysinfo( short vdih, struct s_vdi_sysinfo * info info->pixelsize=8;
break;
default:
- info->pixelsize=0;
+ info->pixelsize=1;
break;
}
|