1 | /*----------------------------------------------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: init.C |
2 | * File: init.C |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
6 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
… | |
… | |
316 | #if XFT |
316 | #if XFT |
317 | if (rs[Rs_depth]) |
317 | if (rs[Rs_depth]) |
318 | select_visual (strtol (rs[Rs_depth], 0, 0)); |
318 | select_visual (strtol (rs[Rs_depth], 0, 0)); |
319 | #endif |
319 | #endif |
320 | |
320 | |
|
|
321 | #ifdef HAVE_AFTERIMAGE |
|
|
322 | ::dpy = NULL ; /* init global var from libAfter... */ |
|
|
323 | asv = AFTERIMAGE_DPY_OP (create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL)); |
|
|
324 | #endif |
321 | free (r_argv); |
325 | free (r_argv); |
322 | |
326 | |
323 | for (int i = NUM_RESOURCES; i--; ) |
327 | for (int i = NUM_RESOURCES; i--; ) |
324 | if (rs [i] == resval_undef) |
328 | if (rs [i] == resval_undef) |
325 | rs [i] = 0; |
329 | rs [i] = 0; |