atari:gem: Read application ID so we can use it. SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Thu, 11 Sep 2014 21:53:06 +0200
branchSDL-1.2
changeset 91318b9217e06b02
parent 9130 347df449e563
child 9132 b37013ec80de
atari:gem: Read application ID so we can use it.
src/video/gem/SDL_gemvideo.c
src/video/gem/SDL_gemvideo.h
     1.1 --- a/src/video/gem/SDL_gemvideo.c	Thu Sep 11 21:51:10 2014 +0200
     1.2 +++ b/src/video/gem/SDL_gemvideo.c	Thu Sep 11 21:53:06 2014 +0200
     1.3 @@ -304,7 +304,8 @@
     1.4  	short work_in[12], work_out[272], dummy;
     1.5  
     1.6  	/* Open AES (Application Environment Services) */
     1.7 -	if (appl_init() == -1) {
     1.8 +	GEM_ap_id = appl_init();
     1.9 +	if (GEM_ap_id == -1) {
    1.10  		fprintf(stderr,"Can not open AES\n");
    1.11  		return 1;
    1.12  	}
     2.1 --- a/src/video/gem/SDL_gemvideo.h	Thu Sep 11 21:51:10 2014 +0200
     2.2 +++ b/src/video/gem/SDL_gemvideo.h	Thu Sep 11 21:53:06 2014 +0200
     2.3 @@ -70,6 +70,7 @@
     2.4  	void (*setpalette)(_THIS, Uint16 newpal[256][3]);
     2.5  
     2.6  	/* GEM infos */
     2.7 +	short ap_id;
     2.8  	short desk_x, desk_y;		/* Desktop properties */
     2.9  	short desk_w, desk_h;
    2.10  	short win_handle;			/* Our window handle */
    2.11 @@ -114,6 +115,7 @@
    2.12  #define VDI_screensize		(this->hidden->screensize)
    2.13  #define VDI_dst_mfdb		(this->hidden->dst_mfdb)
    2.14  
    2.15 +#define GEM_ap_id		(this->hidden->ap_id)
    2.16  #define GEM_desk_x			(this->hidden->desk_x)
    2.17  #define GEM_desk_y			(this->hidden->desk_y)
    2.18  #define GEM_desk_w			(this->hidden->desk_w)