Even more cleanup
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@15 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									65575a236f
								
							
						
					
					
						commit
						7c4b0858da
					
				
							
								
								
									
										15
									
								
								boutons.c
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								boutons.c
									
									
									
									
									
								
							@ -370,7 +370,7 @@ void Bouton_Cacher_menu(void)
 | 
				
			|||||||
byte Bouton_Quitter_Routine_locale(void)
 | 
					byte Bouton_Quitter_Routine_locale(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  short Bouton_clicke;
 | 
					  short Bouton_clicke;
 | 
				
			||||||
  byte  Enregistrer;
 | 
					  //byte  Enregistrer;
 | 
				
			||||||
  char  Nom_du_fichier[256];
 | 
					  char  Nom_du_fichier[256];
 | 
				
			||||||
  byte  Ancienne_forme_curseur;
 | 
					  byte  Ancienne_forme_curseur;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -430,7 +430,7 @@ byte Bouton_Quitter_Routine_locale(void)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void Bouton_Quit(void)
 | 
					void Bouton_Quit(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  short Bouton_clicke;
 | 
					  //short Bouton_clicke;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (Bouton_Quitter_Routine_locale())
 | 
					  if (Bouton_Quitter_Routine_locale())
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
@ -2450,8 +2450,9 @@ byte Bouton_Load_ou_Save(byte Load, byte Image)
 | 
				
			|||||||
          Print_dans_fenetre(127,123,"Yes/No",CM_Fonce,CM_Clair);
 | 
					          Print_dans_fenetre(127,123,"Yes/No",CM_Fonce,CM_Clair);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          do
 | 
					          do
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            Etat_Du_Clavier=SDL_GetKeyState(Bidon);
 | 
									 puts("boutons.c 2454\n");
 | 
				
			||||||
 | 
					            //Etat_Du_Clavier=SDL_GetKeyState(Bidon);
 | 
				
			||||||
          } while ((Etat_Du_Clavier[SDLK_y]==0) && (Etat_Du_Clavier[SDLK_n]==0) && (Etat_Du_Clavier[SDLK_ESCAPE]==0));
 | 
					          } while ((Etat_Du_Clavier[SDLK_y]==0) && (Etat_Du_Clavier[SDLK_n]==0) && (Etat_Du_Clavier[SDLK_ESCAPE]==0));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          // On efface la demande de confirmation
 | 
					          // On efface la demande de confirmation
 | 
				
			||||||
@ -2951,7 +2952,7 @@ void Load_picture(byte Image)
 | 
				
			|||||||
  byte  Ancienne_forme_curseur;
 | 
					  byte  Ancienne_forme_curseur;
 | 
				
			||||||
  short Principal_Largeur_image_initiale=Principal_Largeur_image;
 | 
					  short Principal_Largeur_image_initiale=Principal_Largeur_image;
 | 
				
			||||||
  short Principal_Hauteur_image_initiale=Principal_Hauteur_image;
 | 
					  short Principal_Hauteur_image_initiale=Principal_Hauteur_image;
 | 
				
			||||||
  char  Commentaire_initial[TAILLE_COMMENTAIRE+1];
 | 
					  //char  Commentaire_initial[TAILLE_COMMENTAIRE+1];
 | 
				
			||||||
  int   Nouveau_mode;
 | 
					  int   Nouveau_mode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -3242,7 +3243,7 @@ void Save_picture(byte Image)
 | 
				
			|||||||
  byte  Ancienne_forme_curseur;
 | 
					  byte  Ancienne_forme_curseur;
 | 
				
			||||||
  short Principal_Largeur_image_Backup=Principal_Largeur_image;
 | 
					  short Principal_Largeur_image_Backup=Principal_Largeur_image;
 | 
				
			||||||
  short Principal_Hauteur_image_Backup=Principal_Hauteur_image;
 | 
					  short Principal_Hauteur_image_Backup=Principal_Hauteur_image;
 | 
				
			||||||
  char  Commentaire_initial[TAILLE_COMMENTAIRE+1];
 | 
					  //char  Commentaire_initial[TAILLE_COMMENTAIRE+1];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!Image)
 | 
					  if (!Image)
 | 
				
			||||||
@ -5451,7 +5452,7 @@ void Bouton_Effets(void)
 | 
				
			|||||||
        Afficher_curseur();
 | 
					        Afficher_curseur();
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
      case 13 : // Feedback (pour Colorize et Shade)
 | 
					      case 13 : // Feedback (pour Colorize et Shade)
 | 
				
			||||||
        if (Config.FX_Feedback=!Config.FX_Feedback)
 | 
					        if (Config.FX_Feedback=!Config.FX_Feedback) //???
 | 
				
			||||||
          FX_Feedback_Ecran=Principal_Ecran;
 | 
					          FX_Feedback_Ecran=Principal_Ecran;
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
          FX_Feedback_Ecran=Ecran_backup;
 | 
					          FX_Feedback_Ecran=Ecran_backup;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										150
									
								
								divers.c
									
									
									
									
									
								
							
							
						
						
									
										150
									
								
								divers.c
									
									
									
									
									
								
							@ -127,3 +127,153 @@ byte Lit_pixel_dans_brosse         (word X,word Y)
 | 
				
			|||||||
	puts("Lit_pixel_dans_brosse non implémenté!\n");
 | 
						puts("Lit_pixel_dans_brosse non implémenté!\n");
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Clavier_de_depart(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Clavier_de_depart non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Recuperer_nb_lignes(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Recuperer_nb_lignes non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Clavier_americain(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Clavier_americain non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					word Detection_souris(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Detection_souris non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Lit_pixel_dans_ecran_courant  (word X,word Y)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Lit_pixel_dans_ecran_courant non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Pixel_dans_ecran_courant      (word X,word Y,byte Couleur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Pixel_dans_ecran_courant non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Remplacer_une_couleur(byte Ancienne_couleur, byte Nouvelle_couleur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Remplacer_une_couleur non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Ellipse_Calculer_limites(short Rayon_horizontal,short Rayon_vertical)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Ellipse_Calculer_limites non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Pixel_dans_ellipse(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Pixel_dans_ellipse non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Pixel_dans_cercle(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Pixel_dans_cercle non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Copier_une_partie_d_image_dans_une_autre(byte * Source,word S_Pos_X,word S_Pos_Y,word Largeur,word Hauteur,word Largeur_source,byte * Destination,word D_Pos_X,word D_Pos_Y,word Largeur_destination)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Copier_une_partie_d_image_dans_une_autre non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Lit_pixel_dans_ecran_brouillon(word X,word Y)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Lit_pixel_dans_ecran_brouillon non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Rotate_90_deg_LOWLEVEL(byte * Source,byte * Destination)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Rotate_90_deg_LOWLEVEL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Remap_general_LOWLEVEL(byte * Table_conv,byte * Buffer,short Largeur,short Hauteur,short Largeur_buffer)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Remap_general_LOWLEVEL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Copier_image_dans_brosse(short Debut_X,short Debut_Y,short Brosse_Largeur,short Brosse_Hauteur,word Largeur_image)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Copier_image_dans_brosse non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Lit_pixel_dans_ecran_feedback (word X,word Y)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Lit_pixel_dans_ecran_feedback non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dword Round_div(dword Numerateur,dword Diviseur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Round_div non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Effet_Trame(word X,word Y)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Effet_Trame non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Set_mouse_position(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Set_mouse_position non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Clip_mouse(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Clip_mouse non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Remplacer_toutes_les_couleurs_dans_limites(byte * Table_de_remplacement)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Remplacer_toutes_les_couleurs_dans_limites non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Lit_pixel_dans_ecran_backup   (word X,word Y)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Lit_pixel_dans_ecran_backup non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Type_de_lecteur_de_disquette(byte Numero_de_lecteur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Type_de_lecteur_de_disquette non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Disk_map(byte Numero_de_lecteur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Disk_map non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Disque_dur_present(byte Numero_de_disque)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Disque_dur_present non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Lecteur_CDROM_present(byte Numero_de_lecteur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Lecteur_CDROM_present non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					long Freespace(byte Numero_de_lecteur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Freespace non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										10
									
								
								divers.h
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								divers.h
									
									
									
									
									
								
							@ -68,8 +68,8 @@ byte Disk_map(byte Numero_de_lecteur);
 | 
				
			|||||||
byte Disque_dur_present(byte Numero_de_disque);
 | 
					byte Disque_dur_present(byte Numero_de_disque);
 | 
				
			||||||
// Numero_de_disque = 0:C, 1:D, 2:E, ...
 | 
					// Numero_de_disque = 0:C, 1:D, 2:E, ...
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// R‚sultat = 0 : Pas de disque dur pr‚sent
 | 
					// Résultat = 0 : Pas de disque dur présent
 | 
				
			||||||
//            1 : Disque dur pr‚sent
 | 
					//            1 : Disque dur présent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
byte Lecteur_CDROM_present(byte Numero_de_lecteur);
 | 
					byte Lecteur_CDROM_present(byte Numero_de_lecteur);
 | 
				
			||||||
// Numero_de_lecteur = 0 : lecteur A:
 | 
					// Numero_de_lecteur = 0 : lecteur A:
 | 
				
			||||||
@ -77,12 +77,12 @@ byte Lecteur_CDROM_present(byte Numero_de_lecteur);
 | 
				
			|||||||
//                     2 : lecteur C:
 | 
					//                     2 : lecteur C:
 | 
				
			||||||
//                   ... : ...
 | 
					//                   ... : ...
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// R‚sultat = 0 : Pas de lecteur CD-ROM pr‚sent
 | 
					// Résultat = 0 : Pas de lecteur CD-ROM présent
 | 
				
			||||||
//            1 : Lecteur CD-ROM pr‚sent
 | 
					//            1 : Lecteur CD-ROM présent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Ellipse_Calculer_limites(short Rayon_horizontal,short Rayon_vertical);
 | 
					void Ellipse_Calculer_limites(short Rayon_horizontal,short Rayon_vertical);
 | 
				
			||||||
// Calcule les valeurs suivantes en fonction des deux paramŠtres:
 | 
					// Calcule les valeurs suivantes en fonction des deux paramètres:
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// Ellipse_Rayon_vertical_au_carre
 | 
					// Ellipse_Rayon_vertical_au_carre
 | 
				
			||||||
// Ellipse_Rayon_horizontal_au_carre
 | 
					// Ellipse_Rayon_horizontal_au_carre
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								graph.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								graph.c
									
									
									
									
									
								
							@ -974,8 +974,8 @@ void Initialiser_mode_video(int Numero)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  // fonction d'affichage "Pixel" utilisée pour les opérations définitivement
 | 
					  // fonction d'affichage "Pixel" utilisée pour les opérations définitivement
 | 
				
			||||||
  // Ne doit à aucune condition être appelée en dehors de la partie visible
 | 
					  // Ne doit à aucune condition être appelée en dehors de la partie visible
 | 
				
			||||||
  // de l'image dans l'écran (‡a pourrait être grave)
 | 
					  // de l'image dans l'écran (ça pourrait être grave)
 | 
				
			||||||
void Afficher_pixel(short X,short Y,byte Couleur)
 | 
					void Afficher_pixel(word X,word Y,byte Couleur)
 | 
				
			||||||
  // X & Y    sont la position d'un point dans l'IMAGE
 | 
					  // X & Y    sont la position d'un point dans l'IMAGE
 | 
				
			||||||
  // Couleur  est la couleur du point
 | 
					  // Couleur  est la couleur du point
 | 
				
			||||||
  // Le Stencil est géré.
 | 
					  // Le Stencil est géré.
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								graph.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								graph.h
									
									
									
									
									
								
							@ -154,3 +154,5 @@ void Detruire_la_page_courante(void);
 | 
				
			|||||||
void Interchanger_image_principale_et_brouillon(void);
 | 
					void Interchanger_image_principale_et_brouillon(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Changer_facteur_loupe(byte Indice_facteur);
 | 
					void Changer_facteur_loupe(byte Indice_facteur);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Remap_picture(void);
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								linux.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								linux.c
									
									
									
									
									
								
							@ -1,8 +1,9 @@
 | 
				
			|||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier)
 | 
					void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    int i=0, Position_Du_Dernier_Slash;
 | 
					    int i=0, Position_Du_Dernier_Slash=0;
 | 
				
			||||||
    do
 | 
					    do
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Chemin[i]=Buffer[i];
 | 
					        Chemin[i]=Buffer[i];
 | 
				
			||||||
@ -16,7 +17,8 @@ void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier)
 | 
				
			|||||||
    strcpy(Nom_Fichier,Buffer+i);
 | 
					    strcpy(Nom_Fichier,Buffer+i);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int filelength(char *)
 | 
					int filelength(int fichier)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	printf("filelenght non implémenté!\n");
 | 
						printf("filelenght non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								linux.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								linux.h
									
									
									
									
									
								
							@ -6,6 +6,6 @@ struct find_t {
 | 
				
			|||||||
  char name[256];
 | 
					  char name[256];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int filelength(char *);
 | 
					int filelength(int);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define _A_SUBDIR 1
 | 
					#define _A_SUBDIR 1
 | 
				
			||||||
 | 
				
			|||||||
@ -1177,7 +1177,7 @@ void Load_PKM(void)
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void save_PKM(void)
 | 
					void Save_PKM(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  char Nom_du_fichier[256];
 | 
					  char Nom_du_fichier[256];
 | 
				
			||||||
  int  Fichier;
 | 
					  int  Fichier;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										9
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								makefile
									
									
									
									
									
								
							@ -2,8 +2,8 @@ CC = gcc
 | 
				
			|||||||
COPT = -Wall -Os -c
 | 
					COPT = -Wall -Os -c
 | 
				
			||||||
LOPT = -lSDL
 | 
					LOPT = -lSDL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gfx2 : main.o init.o graph.o sdlscreen.o divers.o special.o boutons.o palette.o aide.o operatio.o loadsave.o readline.o moteur.o files.o op_c.o
 | 
					gfx2 : main.o init.o graph.o sdlscreen.o divers.o special.o boutons.o palette.o aide.o operatio.o loadsave.o readline.o moteur.o files.o op_c.o linux.o
 | 
				
			||||||
	$(CC) $(LOPT) main.o graph.o divers.o -o grafx2
 | 
						$(CC) $(LOPT) main.o graph.o divers.o init.o files.o linux.o loadsave.o boutons.o moteur.o sdlscreen.o aide.o palette.o -o grafx2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
main.o : graph.o const.h struct.h global.h graph.h divers.h init.h boutons.h moteur.h files.h loadsave.h main.c readini.h saveini.h
 | 
					main.o : graph.o const.h struct.h global.h graph.h divers.h init.h boutons.h moteur.h files.h loadsave.h main.c readini.h saveini.h
 | 
				
			||||||
	$(CC) $(COPT) main.c
 | 
						$(CC) $(COPT) main.c
 | 
				
			||||||
@ -48,4 +48,7 @@ op_c.o : struct.h op_c.c op_c.h op_asm.h
 | 
				
			|||||||
	$(CC) $(COPT) op_c.c
 | 
						$(CC) $(COPT) op_c.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sdlscreen.o : sdlscreen.c sdlscreen.h
 | 
					sdlscreen.o : sdlscreen.c sdlscreen.h
 | 
				
			||||||
	$(CC) $(COPT) sdlscreen.c
 | 
						$(CC) $(COPT) sdlscreen.c
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					linux.o : linux.h linux.c
 | 
				
			||||||
 | 
						$(CC) $(COPT) linux.c
 | 
				
			||||||
							
								
								
									
										102
									
								
								sdlscreen.c
									
									
									
									
									
								
							
							
						
						
									
										102
									
								
								sdlscreen.c
									
									
									
									
									
								
							@ -0,0 +1,102 @@
 | 
				
			|||||||
 | 
					#include "sdlscreen.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Pixel_SDL (word X,word Y,byte Couleur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Pixel_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					byte Lit_Pixel_SDL            (word X,word Y)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Lit_Pixel_SDL non implémenté!\n");
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Effacer_Tout_l_Ecran_SDL (byte Couleur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Effacer_Tout_l_Ecran_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Afficher_partie_de_l_ecran_SDL       (word Largeur,word Hauteur,word Largeur_image)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Afficher_partie_de_l_ecran_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Block_SDL                (word Debut_X,word Debut_Y,word Largeur,word Hauteur,byte Couleur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Block_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Pixel_Preview_Normal_SDL (word X,word Y,byte Couleur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Pixel_Preview_Normal_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Pixel_Preview_Loupe_SDL  (word X,word Y,byte Couleur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Pixel_Preview_Loupe_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Ligne_horizontale_XOR_SDL(word Pos_X,word Pos_Y,word Largeur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Ligne_horizontale_XOR_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Ligne_verticale_XOR_SDL  (word Pos_X,word Pos_Y,word Hauteur)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Ligne_verticale_XOR_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Display_brush_Color_SDL  (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Hauteur,byte Couleur_de_transparence,word Largeur_brosse)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Display_brush_Color_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Display_brush_Mono_SDL   (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Hauteur,byte Couleur_de_transparence,byte Couleur,word Largeur_brosse)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Display_brush_Mono_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Clear_brush_SDL          (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Hauteur,byte Couleur_de_transparence,word Largeur_image)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Clear_brush_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Remap_screen_SDL         (word Pos_X,word Pos_Y,word Largeur,word Hauteur,byte * Table_de_conversion)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Remap_screen_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Afficher_une_ligne_ecran_SDL     (word Pos_X,word Pos_Y,word Largeur,byte * Ligne)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Afficher_une_ligne_ecran_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					} 
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					void Lire_une_ligne_ecran_SDL         (word Pos_X,word Pos_Y,word Largeur,byte * Ligne)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Lire_une_ligne_ecran_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					void Afficher_partie_de_l_ecran_zoomee_SDL(word Largeur,word Hauteur,word Largeur_image,byte * Buffer)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Afficher_partie_de_l_ecran_zoomee_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					void Display_brush_Color_zoom_SDL(word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,word Largeur_brosse,byte * Buffer)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Display_brush_Color_zoom_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					void Display_brush_Mono_zoom_SDL (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,byte Couleur,word Largeur_brosse,byte * Buffer)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Display_brush_Mono_zoom_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					void Clear_brush_zoom_SDL        (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,word Largeur_image,byte * Buffer)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Clear_brush_zoom_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					void Set_Mode_SDL()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						puts("Set_Mode_SDL non implémenté!\n");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -4,7 +4,6 @@
 | 
				
			|||||||
#include <SDL/SDL.h>
 | 
					#include <SDL/SDL.h>
 | 
				
			||||||
#include "struct.h"
 | 
					#include "struct.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void Set_Mode_SDL();
 | 
					 | 
				
			||||||
  void Pixel_SDL                (word X,word Y,byte Couleur);
 | 
					  void Pixel_SDL                (word X,word Y,byte Couleur);
 | 
				
			||||||
  byte Lit_Pixel_SDL            (word X,word Y);
 | 
					  byte Lit_Pixel_SDL            (word X,word Y);
 | 
				
			||||||
  void Effacer_Tout_l_Ecran_SDL (byte Couleur);
 | 
					  void Effacer_Tout_l_Ecran_SDL (byte Couleur);
 | 
				
			||||||
@ -24,6 +23,7 @@
 | 
				
			|||||||
  void Display_brush_Color_zoom_SDL(word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,word Largeur_brosse,byte * Buffer);
 | 
					  void Display_brush_Color_zoom_SDL(word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,word Largeur_brosse,byte * Buffer);
 | 
				
			||||||
  void Display_brush_Mono_zoom_SDL (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,byte Couleur,word Largeur_brosse,byte * Buffer);
 | 
					  void Display_brush_Mono_zoom_SDL (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,byte Couleur,word Largeur_brosse,byte * Buffer);
 | 
				
			||||||
  void Clear_brush_zoom_SDL        (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,word Largeur_image,byte * Buffer);
 | 
					  void Clear_brush_zoom_SDL        (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Pos_Y_Fin,byte Couleur_de_transparence,word Largeur_image,byte * Buffer);
 | 
				
			||||||
 | 
					  	void Set_Mode_SDL();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  SDL_Rect ** Liste_Modes_Videos_SDL;
 | 
					  SDL_Rect ** Liste_Modes_Videos_SDL;
 | 
				
			||||||
  byte* Ecran;
 | 
					  byte* Ecran;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user