# sdlscreen.c File Reference

`#include <string.h>`
`#include <stdlib.h>`
`#include <SDL.h>`
`#include "global.h"`
`#include "sdlscreen.h"`
`#include "erreurs.h"`
`#include "divers.h"`

## Defines
#define | METHODE_UPDATE_MULTI_RECTANGLE 1
#define | METHODE_UPDATE_PAR_CUMUL 2
#define | METHODE_UPDATE_PLEINE_PAGE 3
#define | METHODE_UPDATE METHODE_UPDATE_PAR_CUMUL
## Functions
void | Set_Mode_SDL (int *Largeur, int *Hauteur, int Fullscreen)
void | Flush_update (void)
void | UpdateRect (short X, short Y, unsigned short Largeur, unsigned short Hauteur)
byte * | Surface_en_bytefield (SDL_Surface *Source, byte *Destination)
SDL_Color | Conversion_couleur_SDL (byte Index)
byte | Sdl_Get_pixel_8 (SDL_Surface *Bmp, int X, int Y)
## Variables
short | Min_X = 0
short | Min_Y = 0
short | Max_X = 10000
short | Max_Y = 10000

## Define Documentation

#define METHODE_UPDATE_MULTI_RECTANGLE 1

#define METHODE_UPDATE_PAR_CUMUL 2

#define METHODE_UPDATE_PLEINE_PAGE 3

#define METHODE_UPDATE METHODE_UPDATE_PAR_CUMUL

## Function Documentation

void Set_Mode_SDL | ( | int * | Largeur,
|  | int * | Hauteur,
|  | int | Fullscreen |
| ) |  |  |

References DEBUG, Ecran, and Ecran_SDL.

Referenced by Initialiser_mode_video().

void Flush_update | ( | void |  | ) |

References Ecran_SDL, Hauteur_ecran, Largeur_ecran, Max_X, Max_Y, Min(), Min_X, Min_Y, Pixel_height, and Pixel_width.

Referenced by Get_input(), and Readline_ex().

void UpdateRect | ( | short | X,
|  | short | Y,
|  | unsigned short | Largeur,
|  | unsigned short | Hauteur |
| ) |  |  |

References Ecran_SDL, Max_X, Max_Y, Min_X, Min_Y, Pixel_height, and Pixel_width.

Referenced by Afficher_aide(), Afficher_barre_de_split(), Afficher_curseur(), Afficher_ecran(), Afficher_foreback(), Afficher_limites_de_l_image(), Afficher_menu(), Afficher_palette_du_menu(), Afficher_palette_du_menu_en_evitant_la_fenetre(), Afficher_partie_de_l_ecran_zoomee_Double(), Afficher_partie_de_l_ecran_zoomee_Simple(), Afficher_partie_de_l_ecran_zoomee_Tall(), Afficher_partie_de_l_ecran_zoomee_Wide(), Afficher_pinceau_dans_fenetre(), Afficher_pinceau_dans_menu(), Afficher_sprite_dans_menu(), Afficher_sprite_effet(), Afficher_tout_le_shade(), Bloc_degrade_dans_fenetre(), Bouton_Load_ou_Save(), Bouton_Loupe(), Bouton_Menu_Loupe(), Bouton_Palette(), Bouton_Palette_secondaire(), Bouton_Quick_shade_Menu(), Bouton_Spray_Menu(), Bouton_Stats(), Bouton_Texte(), Bouton_Trame_Menu(), Clear_brush_Double(), Clear_brush_Simple(), Clear_brush_Tall(), Clear_brush_Wide(), Clear_brush_zoom_Double(), Clear_brush_zoom_Simple(), Clear_brush_zoom_Tall(), Clear_brush_zoom_Wide(), Cocher_bouton_mode(), Degrade_Dessiner_bouton_de_technique(), Degrade_Dessiner_preview(), Demande_de_confirmation(), Deplacer_fenetre(), Deplacer_Split(), Dessiner_preview_palette(), Dessiner_trame_zoomee(), Dessiner_trames_predefinies(), Display_brush_Color_Double(), Display_brush_Color_Simple(), Display_brush_Color_Tall(), Display_brush_Color_Wide(), Display_brush_Mono_Double(), Display_brush_Mono_Simple(), Display_brush_Mono_Tall(), Display_brush_Mono_Wide(), Display_brush_Mono_zoom_Double(), Display_brush_Mono_zoom_Simple(), Display_brush_Mono_zoom_Tall(), Display_brush_Mono_zoom_Wide(), Effacer_curseur(), Encadrer_couleur_menu(), Fenetre_Afficher_sprite_drive(), Fenetre_aide(), Fenetre_controle(), Fenetre_Desenfoncer_bouton_normal(), Fenetre_Dessiner_jauge(), Fenetre_Dropdown_click(), Fenetre_Effacer_bouton_saisie(), Fenetre_Effacer_tags(), Fenetre_Enfoncer_bouton_normal(), Fermer_fenetre(), Fermer_popup(), Gestion_principale(), Ligne_horizontale_XOR_Zoom(), Ligne_verticale_XOR_Zoom(), Menu_Shade(), Mettre_a_jour_trame(), Mettre_Ecran_A_Jour(), Preparer_et_afficher_liste_fichiers(), Print_compteur(), Print_coordonnees(), Print_dans_fenetre(), Print_dans_menu(), Print_Nom_fichier_dans_selecteur(), Print_repertoire_courant(), Readline_ex(), Rectangle_Degrade_0_5(), Rectangle_Degrade_0_9(), Rectangle_Degrade_12_7(), Recuperer_couleur_derriere_fenetre(), Remap_screen_Double(), Remap_screen_Simple(), Remap_screen_Tall(), Remap_screen_Wide(), Remplacer_une_couleur(), Remplir(), Scroll_picture(), Shade_Blocs_degrades(), Spray_Rafficher_infos(), Stencil_Actualiser_couleur(), Tagger_intervalle_palette(), Tagger_shades(), Tracer_cadre_de_bouton_du_menu(), and Warning_message().

byte* Surface_en_bytefield | ( | SDL_Surface * | Source,
|  | byte * | Destination |
| ) |  |  |

Referenced by Rendu_Texte_SFont(), and Rendu_Texte_TTF().

SDL_Color Conversion_couleur_SDL | ( | byte | Index | ) |

References Principal_Palette.

Referenced by Rendu_Texte_TTF().

byte Sdl_Get_pixel_8 | ( | SDL_Surface * | Bmp,
|  | int | X,
|  | int | Y |
| ) |  |  |

Referenced by Charger_DAT(), Chercher_bas(), Chercher_droite(), and Lire_bloc().

## Variable Documentation

short Min_X = 0

Referenced by Flush_update(), and UpdateRect().

short Min_Y = 0

Referenced by Flush_update(), and UpdateRect().

short Max_X = 10000

Referenced by Flush_update(), and UpdateRect().

short Max_Y = 10000

Referenced by Flush_update(), and UpdateRect().