summaryrefslogtreecommitdiff
path: root/spectro/dispwin.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 05:38:49 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 05:38:49 +0100
commit9491825ddff7a294d1f49061bae7044e426aeb2e (patch)
tree06e651099f87140ec534ae47fb8ce1ac6ec7976d /spectro/dispwin.c
parentfa756339d4204bff7f2820067f58214d32780d17 (diff)
Imported Upstream version 1.8.3
Diffstat (limited to 'spectro/dispwin.c')
-rwxr-xr-x[-rw-r--r--]spectro/dispwin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/spectro/dispwin.c b/spectro/dispwin.c
index 69536f3..fffbaee 100644..100755
--- a/spectro/dispwin.c
+++ b/spectro/dispwin.c
@@ -3624,6 +3624,9 @@ static void create_my_win(NSRect rect, osx_cntx_t *cx) {
[cx->view setCntx:(void *)cx];
[cx->window setContentView: cx->view];
+ /* Moves the window to the front of the screen list within its level, */
+ /* and show the window (i.e. make it "key") */
+ /* Trigger crash on OS X 10.11 El Capitan ? */
[cx->window makeKeyAndOrderFront: nil];
/* Use a null color transform to ensure device values */
@@ -6451,7 +6454,7 @@ main(int argc, char *argv[]) {
/* Try darkening it */
for (j = 0; j < 3; j++) {
for (i = 0; i < dw->r->nent; i++) {
- dw->r->v[j][i] = pow(dw->or->v[j][i], 2.0);
+ dw->r->v[j][i] = pow(dw->or->v[j][i], 1.6);
}
}
printf("Darkening screen\n");
@@ -6464,7 +6467,7 @@ main(int argc, char *argv[]) {
/* Try lightening it */
for (j = 0; j < 3; j++) {
for (i = 0; i < dw->r->nent; i++) {
- dw->r->v[j][i] = pow(dw->or->v[j][i], 0.5);
+ dw->r->v[j][i] = pow(dw->or->v[j][i], 0.625);
}
}
printf("Lightening screen\n");