el mouse ya no peta pero no se ve
This commit is contained in:
parent
7baa6c7597
commit
a39f8d1767
Binary file not shown.
|
@ -1326,7 +1326,7 @@ int eDIV_FADE(FUNCTION_PARAMS2)
|
|||
return 1 ;
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
//*********************************** Entry Points **********************************************//
|
||||
|
||||
FILE * fichero ;
|
||||
|
@ -1465,7 +1465,6 @@ void frame(FUNCTION_PARAMS)
|
|||
//if ( last_map >= 2 )
|
||||
// Mapa[2]->flags |= SDL_SRCALPHA ;
|
||||
|
||||
assert(0);
|
||||
// Volcamos la pila de bliteos
|
||||
for ( i = 0 ; i <= last_blit ; i++ )
|
||||
{
|
||||
|
|
|
@ -531,6 +531,8 @@ void frame(FUNCTION_PARAMS)
|
|||
|
||||
keys = SDL_GetKeyState(&numkeys ) ;
|
||||
|
||||
/* MOUSE */
|
||||
|
||||
mbuttons = SDL_GetMouseState(&fp->mem[_mouse],&fp->mem[_mouse+1]);
|
||||
|
||||
/* Ponemos los 5 botones a 0 */
|
||||
|
@ -551,12 +553,17 @@ void frame(FUNCTION_PARAMS)
|
|||
if(mbuttons&SDL_BUTTON(5)) /* podria no funcionar ¿necesario sdl_event? */
|
||||
fp->mem[_mouse+13]=1;
|
||||
|
||||
/* si mouse.graph!=0 */
|
||||
if(fp->mem[_mouse+2]!=0) {
|
||||
srcrect.x=srcrect.y=srcrect.w=srcrect.h=dstrect.w=dstrect.h=0;
|
||||
dstrect.x=fp->mem[_mouse];
|
||||
dstrect.y=fp->mem[_mouse+1];
|
||||
|
||||
// TODO: añadir chequeo de error si no existe file o mapa
|
||||
fp->Dibuja(fp->files[fp->mem[_mouse+3]].mapa[fp->mem[_mouse+2]].Surface,srcrect,dstrect,fp->mem[_mouse+4],0);
|
||||
}
|
||||
|
||||
/* FIN DE MOUSE */
|
||||
|
||||
//FILE* fichero ;
|
||||
//fichero = fopen( "input.txt" , "w+" ) ;
|
||||
|
|
|
@ -55,7 +55,7 @@ void conecta(char *servidor, char *archivo);
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
FILE *fp; /* stream del PRG /*
|
||||
FILE *fp; /* stream del PRG */
|
||||
char *p;
|
||||
char libmagic[14]; /* cabecera "magic" de EDIVRUN.LIB */
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue