Pixel ratio can be set in Resolution screen

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@705 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-03-30 00:41:45 +00:00
parent 8ff9028eab
commit 7d553daf47
7 changed files with 207 additions and 158 deletions

5
main.c
View File

@@ -549,12 +549,13 @@ int Init_program(int argc,char * argv[])
Analyze_command_line(argc,argv);
starting_videomode=Current_resolution;
Horizontal_line_buffer=NULL;
Current_resolution=-1; // On n'était pas dans un mode graphique
Screen_width=Screen_height=Current_resolution=0;
Init_mode_video(
Video_mode[starting_videomode].Width,
Video_mode[starting_videomode].Height,
Video_mode[starting_videomode].Fullscreen);
Video_mode[starting_videomode].Fullscreen,
Pixel_ratio);
Main_image_width=Screen_width/Pixel_width;
Main_image_height=Screen_height/Pixel_height;