Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORE] Improvements, Changes and Fixes #25

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/det_vesa.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "global.h"

//�����������������������������������������������������������������������������
//═════════════════════════════════════════════════════════════════════════════
// Detection of available video modes
//�����������������������������������������������������������������������������
//═════════════════════════════════════════════════════════════════════════════
/*
struct _modos {
short ancho;
Expand All @@ -15,7 +15,7 @@ int VersionVesa;
char marcavga[128];
*/

//�����������������������������������������������������������������������������
//═════════════════════════════════════════════════════════════════════════════

int compare_mode(void const *aa, void const *bb) {
short *a,*b;
Expand Down
378 changes: 189 additions & 189 deletions src/div.c

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions src/div.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,40 +61,40 @@ typedef struct _process{
}process;

typedef struct __mouse{
int x; // Coordenada X del rat�n
int y; // Coordenada Y del rat�n
int z; // Prioridad de impresi�n del gr�fico
int file; // Fichero que contiene el gr�fico
int graph; // Gr�fico asignado al rat�n
int x; // Coordenada X del ratón
int y; // Coordenada Y del ratón
int z; // Prioridad de impresión del gráfico
int file; // Fichero que contiene el gráfico
int graph; // Gráfico asignado al ratón
int angle; // Angulo del puntero
int size; // Tama�o en porcentaje
int flags; // Flags del rat�n
int size; // Tamaño en porcentaje
int flags; // Flags del ratón
int region; // Region de corte
int left; // Bot�n izquierdo del rat�n
int middle; // Bot�n central del rat�n
int right; // Bot�n derecho del rat�n
int left; // Botón izquierdo del ratón
int middle; // Botón central del ratón
int right; // Botón derecho del ratón
}_mouse;

typedef struct __scroll{
int z; // Prioridad de impresi�n
int z; // Prioridad de impresión
int camera; // Id del proceso al que sigue el scroll (p.def 0-n/a)
int ratio; // Background speed ratio (p.def 200, la mitad del primero)
int speed; // Velocidad m�xima del scroll (primer plano) (p.def 0-Sin l�mite)
int speed; // Velocidad máxima del scroll (primer plano) (p.def 0-Sin límite)
int region1; // Region de bloqueo del scroll (p.def -1)
int region2; // Region exterior del scroll (sin velocidad m�xima, p.def -1)
int region2; // Region exterior del scroll (sin velocidad máxima, p.def -1)
int x0; // Coordenadas del primer plano de scroll
int y0; // (esquina superior izquierda de la ventana)
int x1; // Coordenadas del segundo plano
int y1; // (plano del fondo, si hay)
}_scroll;

typedef struct __m7{
int z; // Prioridad de impresi�n
int camera; // Id del proceso al que sigue la c�mara
int height; // Altura de la c�mara
int distance; // Distancia de la c�mara al proceso seguido
int z; // Prioridad de impresión
int camera; // Id del proceso al que sigue la cámara
int height; // Altura de la cámara
int distance; // Distancia de la cámara al proceso seguido
int horizon; // Altura del horizonte
int focus; // Focal para la c�mara (0..512)
int focus; // Focal para la cámara (0..512)
int color; // Color para el exterior del modo-7
}_m7;

Expand All @@ -104,7 +104,7 @@ typedef struct __joy{
int button3;
int button4;
int left; // Movimientos del joystick o gamepad
int right; // Valores l�gicos (0/1)
int right; // Valores lógicos (0/1)
int up;
int down;
}_joy;
Expand Down
14 changes: 11 additions & 3 deletions src/div1run/06x08.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
char _06x08[]={
0,0,0,0,0,0,114,45,162,250,39,0,115,234,190,139,231,0,83,239,190,113,194,0,33,207,190,249,194,0,113,207,
190,248,135,0,33,207,190,32,143,128,0,7,28,112,0,0,251,232,162,139,239,128,250,40,162,138,47,128,251,232,170,139,
char _06x08[] = {
0, 0, 0, 0, 0, 0,
114, 45, 162, 250, 39, 0,
115, 234, 190, 139, 231, 0,
83, 239, 190, 113, 194, 0,
33, 207, 190, 249, 194, 0,
113, 207, 190, 248, 135, 0,
33, 207, 190, 32, 143, 128,
0, 7, 28, 112, 0, 0,

251,232,162,139,239,128,250,40,162,138,47,128,251,232,170,139,
239,128,56,34,144,226,142,0,113,71,8,33,194,0,121,39,144,67,12,0,250,47,146,75,109,128,34,167,54,114,162,0,
195,143,62,243,140,0,24,231,190,120,225,128,33,207,136,249,194,0,81,69,20,80,5,0,122,166,138,40,162,128,24,135,
20,112,140,0,0,0,0,250,47,128,33,207,136,249,207,128,33,207,136,32,130,0,32,130,8,249,194,0,0,131,62,48,
Expand Down
42 changes: 22 additions & 20 deletions src/div1run/cases.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
case 60: case 61: case 62: case 63: case 64: case 65: case 66: case 67: case 68: case 69:
case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79:
case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89:
case 90: case 91: case 92: case 93: case 94: case 95: case 96: case 97: case 98: case 99:
case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109:
case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: case 119:
case 120: case 121: case 122: case 123: case 124: case 125: case 126: case 127: case 128: case 129:
case 130: case 131: case 132: case 133: case 134: case 135: case 136: case 137: case 138: case 139:
case 140: case 141: case 142: case 143: case 144: case 145: case 146: case 147: case 148: case 149:
case 150: case 151: case 152: case 153: case 154: case 155: case 156: case 157: case 158: case 159:
case 160: case 161: case 162: case 163: case 164: case 165: case 166: case 167: case 168: case 169:
case 170: case 171: case 172: case 173: case 174: case 175: case 176: case 177: case 178: case 179:
case 180: case 181: case 182: case 183: case 184: case 185: case 186: case 187: case 188: case 189:
case 190: case 191: case 192: case 193: case 194: case 195: case 196: case 197: case 198: case 199:
case 200: case 201: case 202: case 203: case 204: case 205: case 206: case 207: case 208: case 209:
case 210: case 211: case 212: case 213: case 214: case 215: case 216: case 217: case 218: case 219:
case 220: case 221: case 222: case 223: case 224: case 225: case 226: case 227: case 228: case 229:
case 230: case 231: case 232: case 233: case 234: case 235: case 236: case 237: case 238: case 239:
case 240: case 241: case 242: case 243: case 244: case 245: case 246: case 247: case 248: case 249:
case 250: case 251: case 252: case 253: case 254: case 255: break;
 case 60: case 61: case 62: case 63: case 64: case 65: case 66: case 67: case 68: case 69:
case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79:
case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89:
case 90: case 91: case 92: case 93: case 94: case 95: case 96: case 97: case 98: case 99:
case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109:
case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: case 119:
case 120: case 121: case 122: case 123: case 124: case 125: case 126: case 127: case 128: case 129:
case 130: case 131: case 132: case 133: case 134: case 135: case 136: case 137: case 138: case 139:
case 140: case 141: case 142: case 143: case 144: case 145: case 146: case 147: case 148: case 149:
case 150: case 151: case 152: case 153: case 154: case 155: case 156: case 157: case 158: case 159:
case 160: case 161: case 162: case 163: case 164: case 165: case 166: case 167: case 168: case 169:
case 170: case 171: case 172: case 173: case 174: case 175: case 176: case 177: case 178: case 179:
case 180: case 181: case 182: case 183: case 184: case 185: case 186: case 187: case 188: case 189:
case 190: case 191: case 192: case 193: case 194: case 195: case 196: case 197: case 198: case 199:
case 200: case 201: case 202: case 203: case 204: case 205: case 206: case 207: case 208: case 209:
case 210: case 211: case 212: case 213: case 214: case 215: case 216: case 217: case 218: case 219:
case 220: case 221: case 222: case 223: case 224: case 225: case 226: case 227: case 228: case 229:
case 230: case 231: case 232: case 233: case 234: case 235: case 236: case 237: case 238: case 239:
case 240: case 241: case 242: case 243: case 244: case 245: case 246: case 247: case 248: case 249:
case 250: case 251: case 252: case 253: case 254: case 255: {
break;
}
10 changes: 5 additions & 5 deletions src/div1run/cdrom.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef __CD_ROM_
#ifndef __CD_ROM_
#define __CD_ROM_

void Init_CD();
void Play_CD(int pista,int modo);
void Stop_CD();
int IsPaying_CD();
void DIVInitCD();
void DIVPlayCD(int pista, int modo);
void DIVStopCD();
int DIVIsPayingCD();

#endif
10 changes: 5 additions & 5 deletions src/div1run/divfli.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __DIVFLI_H
#ifndef __DIVFLI_H
#define __DIVFLI_H

/*************************************************************************/
Expand All @@ -14,7 +14,7 @@
/* Salidas: numero de frames de la animacion */
/* 0 si sucedio algo muy malo. */
/*************************************************************************/
int StartFLI(char *nombre, char *Buffer, int Buff_anc,int Buff_alt,int cx,int cy);
int DIVStartFLI(char *nombre, char *Buffer, int Buff_anc, int Buff_alt, int cx, int cy);

/*************************************************************************/
/* Visualiza el siguiente frame. */
Expand All @@ -24,7 +24,7 @@ int StartFLI(char *nombre, char *Buffer, int Buff_anc,int Buff_alt,int cx,int cy
/* Salidas: 1 si el fli continua */
/* 0 si se va a repetir. */
/*************************************************************************/
int Nextframe();
int DIVNextFrameFLI();

/*************************************************************************/
/* Termina y libera un fli. */
Expand All @@ -33,7 +33,7 @@ int Nextframe();
/*************************************************************************/
/* Salidas: Nada */
/*************************************************************************/
void EndFli();
void DIVEndFLI();

/*************************************************************************/
/* Reinicializa un fli. */
Expand All @@ -42,6 +42,6 @@ void EndFli();
/*************************************************************************/
/* Salidas: Nada */
/*************************************************************************/
void ResetFli();
void DIVResetFLI();

#endif
3 changes: 1 addition & 2 deletions src/div1run/divkeybo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


// System Keys
#define _ESC 0x01
#define _BACKSPACE 0x0E
Expand Down Expand Up @@ -80,4 +80,3 @@
#define _x 0x2d
#define _C 0x2e
#define _M 0x32

Loading