Changeset 18514 for titan/plugins/instar/instar.h
- Timestamp:
- 11/09/12 18:36:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/instar/instar.h
r16512 r18514 5 5 char* cam2 = NULL; 6 6 struct skin* instar_screen = NULL; 7 struct skin* instar_pic1 = NULL; 8 struct skin* instar_actcam1 = NULL; 7 9 int actcam = 1; 8 10 … … 141 143 free(tmpstr); tmpstr = NULL; 142 144 free(positionstop); positionstop = NULL; 145 } 146 if(rcret == getrcconfigint("rcred", NULL)) { 147 if(actcam == 1 && cam2 != NULL) { 148 actcam = 2; 149 changepic(instar_pic1, "/tmp/instar2.jpg"); 150 changetext(instar_actcam1, "CAM2"); 151 tempcam = cam2; 152 addlist(myconfig, "InstarActCam", "2"); 153 } 154 else if(actcam == 2 && cam1 != NULL) { 155 actcam = 1; 156 changepic(instar_pic1, "/tmp/instar1.jpg"); 157 changetext(instar_actcam1, "CAM1"); 158 tempcam = cam1; 159 addlist(myconfig, "InstarActCam", "1"); 160 } 143 161 } 144 162 } … … 267 285 268 286 269 /*287 270 288 if(ostrcmp(getlist(myconfig, "InstarCam2", NULL), "ein") == 0) 271 289 { … … 278 296 cam2 = ostrcat(cam2, getlist(myconfig, "InstarCam2Port", NULL), 1, 0); 279 297 } 280 */281 298 299 282 300 instar_screen = getscreen("instar_full"); 283 284 actcam = 1; 285 301 instar_pic1 = getscreennode(instar_screen, "pic1"); 302 instar_actcam1 = getscreennode(instar_screen, "actcam1"); 303 304 if(ostrcmp(getlist(myconfig, "InstarActCam", NULL), "2") == 0) 305 { 306 actcam = 2; 307 changepic(instar_pic1, "/tmp/instar2.jpg"); 308 changetext(instar_actcam1, "CAM2"); 309 } 310 else 311 { 312 actcam = 1; 313 changepic(instar_pic1, "/tmp/instar1.jpg"); 314 changetext(instar_actcam1, "CAM1"); 315 } 316 286 317 rcode = show_control(); 287 318
Note: See TracChangeset
for help on using the changeset viewer.