From 5d602d0ba08d15cd313fdff02d139d5252b2f420 Mon Sep 17 00:00:00 2001 From: xant Date: Fri, 23 Apr 2010 12:22:45 +0200 Subject: [PATCH] stop changing scripts so that they work only on linux , please we shouldn't never specify a specific screen implementation in the examples, otherwise they won't run on platforms where that implementation is not available. We should always try asking for the default implemenation for the platform we are running on (by omitting the argument when requesting for the screen pointer) --- scripts/javascript/examples/test_rand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/javascript/examples/test_rand.js b/scripts/javascript/examples/test_rand.js index 20c7c334..8b1a7ee6 100644 --- a/scripts/javascript/examples/test_rand.js +++ b/scripts/javascript/examples/test_rand.js @@ -8,7 +8,7 @@ W = 400; H = 300; -scr = new Screen("sdl"); +scr = new Screen(); scr.init(W,H); add_screen(scr);