Skip to content

Commit 1e15d67

Browse files
committed
set title in eps/pdf/svg output
1 parent af3cbc1 commit 1e15d67

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/darwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919

2020
- name: dependencies
21-
run: brew reinstall gcc; brew install --cask xquartz; brew install mesa-glu glfw3 tcsh glew openmotif libXaw
21+
run: brew reinstall gcc; brew install --cask xquartz; brew install mesa-glu glfw3 tcsh glew openmotif libXaw libgl2ps
2222

2323
- name: clean
2424
run: make clean

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525

2626
- name: dependencies
27-
run: sudo apt install cmake gcc gfortran libx11-dev libglu1-mesa-dev libmotif-dev tcsh libxaw7-dev libglew-dev libdlm-dev
27+
run: sudo apt install cmake gcc gfortran libx11-dev libglu1-mesa-dev libmotif-dev tcsh libxaw7-dev libglew-dev libdlm-dev libgl2ps-dev
2828

2929
- name: clean
3030
run: make clean

src/libphigs/c_binding/cb_ws.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void pclose_ws(
363363
if (gl2ps){
364364
int buffsize = 1024*1024*1024;
365365
wsh->fd = fopen(wsh->filename, "wb");
366-
gl2psBeginPage("Title", "OpenPHIGS", NULL, gl2ps, GL2PS_BSP_SORT,
366+
gl2psBeginPage(config[ws_id].window_title, "OpenPHIGS", NULL, gl2ps, GL2PS_BSP_SORT,
367367
GL2PS_DRAW_BACKGROUND | GL2PS_USE_CURRENT_VIEWPORT| GL2PS_SIMPLE_LINE_OFFSET|GL2PS_OCCLUSION_CULL|GL2PS_TIGHT_BOUNDING_BOX,
368368
GL_RGBA, 0, NULL, 0, 0, 0, buffsize, wsh->fd, NULL);
369369
/* redfine colors and redraw */

0 commit comments

Comments
 (0)