projects
/
mandelbrot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make extra button to call image drawing really work
[mandelbrot.git]
/
xulapp
/
chrome
/
mandelbrot
/
content
/
image-settings.js
diff --git
a/xulapp/chrome/mandelbrot/content/image-settings.js
b/xulapp/chrome/mandelbrot/content/image-settings.js
index 3b1943420bc4cb49c802e708ab8eb55366e606bb..a025bde548cc0fd4d815a3e7ced8ff9ecc78e4f6 100644
(file)
--- a/
xulapp/chrome/mandelbrot/content/image-settings.js
+++ b/
xulapp/chrome/mandelbrot/content/image-settings.js
@@
-40,6
+40,8
@@
var gColorPalette = [];
function initSettings() {
recalcCoord('Cr', 'scale');
recalcCoord('Ci', 'scale');
function initSettings() {
recalcCoord('Cr', 'scale');
recalcCoord('Ci', 'scale');
+ if (!window.opener)
+ window.getButton('extra1').disabled = true;
}
function drawPreview() {
}
function drawPreview() {
@@
-134,4
+136,9
@@
function checkProportions() {
function roundCoord(floatval) {
// We should round to 10 decimals here or so
return floatval;
function roundCoord(floatval) {
// We should round to 10 decimals here or so
return floatval;
+}
+
+function callDrawImage() {
+ window.opener.drawImage();
+ window.close();
}
\ No newline at end of file
}
\ No newline at end of file