summaryrefslogtreecommitdiff
path: root/riscos/bitmap.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-03-22 09:34:34 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-03-22 09:34:34 +0000
commit1490b52a6b96b6a69a0c4fe9e0515dc717425128 (patch)
tree8caba44a9da98e6cebf4f188e3232534b1596a4d /riscos/bitmap.c
parent0797bf5a5731b2c8d55105b453530584ea4e1f5b (diff)
downloadnetsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.gz
netsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.bz2
NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
Diffstat (limited to 'riscos/bitmap.c')
-rw-r--r--riscos/bitmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/riscos/bitmap.c b/riscos/bitmap.c
index 12198fe13..257d7ced2 100644
--- a/riscos/bitmap.c
+++ b/riscos/bitmap.c
@@ -39,7 +39,7 @@
#include "image/bitmap.h"
#include "riscos/bitmap.h"
#include "riscos/image.h"
-#include "riscos/options.h"
+#include "desktop/options.h"
#include "riscos/palettes.h"
#include "riscos/content-handlers/sprite.h"
#include "riscos/tinct.h"
@@ -138,7 +138,7 @@ void bitmap_initialise_memory(void)
available_memory = free_slot;
/* calculate our memory block sizes */
- if (option_image_memory_direct == -1) {
+ if (nsoption_int(image_memory_direct) == -1) {
/* claim 25% of free memory - min 256KB, max 32768KB */
direct_size = available_memory / 4;
if (direct_size < (256 << 10))
@@ -146,9 +146,9 @@ void bitmap_initialise_memory(void)
if (direct_size > (32768 << 10))
direct_size = (32768 << 10);
} else {
- direct_size = (option_image_memory_direct << 10);
+ direct_size = (nsoption_int(image_memory_direct) << 10);
}
- if (option_image_memory_compressed == -1) {
+ if (nsoption_int(image_memory_compressed) == -1) {
/* claim 10% of free memory - min 256KB, max 4192KB */
compressed_size = available_memory / 10;
if (compressed_size < (256 << 10))
@@ -156,7 +156,7 @@ void bitmap_initialise_memory(void)
if (compressed_size > (4192 << 10))
compressed_size = (4192 << 10);
} else {
- compressed_size = (option_image_memory_compressed << 10);
+ compressed_size = (nsoption_int(image_memory_compressed) << 10);
}
/* set our values. No fixed buffers here, ho hum. */