diff --git a/scripts/javascript/examples/cynosure.js b/scripts/javascript/examples/cynosure.js index 199b41af..2071628e 100644 --- a/scripts/javascript/examples/cynosure.js +++ b/scripts/javascript/examples/cynosure.js @@ -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); diff --git a/scripts/javascript/examples/test_rand.js b/scripts/javascript/examples/test_rand.js index aa27107f..f7e1d9d8 100644 --- a/scripts/javascript/examples/test_rand.js +++ b/scripts/javascript/examples/test_rand.js @@ -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;