summaryrefslogtreecommitdiff
path: root/spectro/dispwin.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 07:40:42 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 07:40:42 +0100
commitc6739b6427261ac2682a9fca3b23c98df0dc9f60 (patch)
treea90193f98739ad96e6ae676409022bd15a648aae /spectro/dispwin.c
parentc6267b450e6858fdff4360104b362d9da2e1806d (diff)
New upstream release
Diffstat (limited to 'spectro/dispwin.c')
-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
--- 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");