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:
@@ -911,7 +911,11 @@ void Afficher_pinceau_dans_fenetre(word X,word Y,int Numero)
|
||||
word Orig_Y;
|
||||
|
||||
Taille_X=Menu_Facteur_X/Pixel_height;
|
||||
if (Taille_X<1)
|
||||
Taille_X=1;
|
||||
Taille_Y=Menu_Facteur_Y/Pixel_width;
|
||||
if (Taille_Y<1)
|
||||
Taille_Y=1;
|
||||
|
||||
Orig_X = (X + 8)*Menu_Facteur_X - (Pinceau_predefini_Decalage_X[Numero])*Taille_X+Fenetre_Pos_X;
|
||||
Orig_Y = (Y + 8)*Menu_Facteur_Y - (Pinceau_predefini_Decalage_Y[Numero])*Taille_Y+Fenetre_Pos_Y;
|
||||
|
||||
Reference in New Issue
Block a user