Implemented Double Pixel mode (issue 86)

Tall pixels can now be used in resolution minimum 320x400, and Tall pixels minimum 640x200. (instead of 640x400 for both)
Fixed: There was incorrect error recovery when trying to use a fullscreen mode too small to use wide/tall/double pixel.
Little code cleanup in the different pixel renderers.



git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@631 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-02-15 23:34:35 +00:00
parent 8ed5019b02
commit 6c2d55ed8f
11 changed files with 212 additions and 178 deletions

View File

@@ -1640,12 +1640,11 @@ void Bouton_Resol(void)
|| (Hauteur_choisie!=Principal_Hauteur_image) )
Redimentionner_image(Largeur_choisie,Hauteur_choisie);
if ((Mode_video[Mode_choisi].Etat & 3) != 3)
Initialiser_mode_video(
if ((Mode_video[Mode_choisi].Etat & 3) == 3 ||
!Initialiser_mode_video(
Mode_video[Mode_choisi].Largeur,
Mode_video[Mode_choisi].Hauteur,
Mode_video[Mode_choisi].Fullscreen);
else
Mode_video[Mode_choisi].Fullscreen))
{
Erreur(0); // On signale à l'utilisateur que c'est un mode invalide
Initialiser_mode_video(