query the environment for screen resolution

(instead of using hardcoded values)
This commit is contained in:
Xant
2009-08-21 10:15:40 +02:00
parent ce2221f60c
commit 689308ac83
2 changed files with 3 additions and 6 deletions
+1 -4
View File
@@ -38,10 +38,7 @@ THRESHOLD = 100;
i = 0;
colors = new Array(0xa03000ff, 0x006000ff, 0x336000ff, 0x00ff00ff, 0xc20000ff, 0x0000c0ff, 0xc0c0c0ff, 0x30f0f0ff, 0x00ff90ff);
width=200; height=600;
width=1024; height=768;
width=800; height=800;
width=400; height=300;
width=width(); height=height();
cyno_geo = new GeometryLayer();
cyno_geo.activate(true);
+2 -2
View File
@@ -3,8 +3,8 @@
// and smart use of function pointers
// (C)2005 Denis Jaromil Rojo - GNU GPL
width = 400;
height = 300;
width = width();
height = height();
function draw_pixels(rand_geo) {
var x, y;