puae 2.3.1

parent 7d9b7ea8
...@@ -112,7 +112,7 @@ static const struct cfg_lines opttable[] = ...@@ -112,7 +112,7 @@ static const struct cfg_lines opttable[] =
{"comp_trustlong", "How to access longs in compiler (direct/indirect/indirectKS/afterPic" }, {"comp_trustlong", "How to access longs in compiler (direct/indirect/indirectKS/afterPic" },
{"comp_nf", "Whether to optimize away flag generation where possible" }, {"comp_nf", "Whether to optimize away flag generation where possible" },
{"comp_fpu", "Whether to provide JIT FPU emulation" }, {"comp_fpu", "Whether to provide JIT FPU emulation" },
{"compforcesettings", "Whether to force the JIT compiler settings" }, {"compforcesettings", "Whether to force the JIT compiler settings" },
{"cachesize", "How many MB to use to buffer translated instructions"}, {"cachesize", "How many MB to use to buffer translated instructions"},
#endif #endif
{"override_dga_address", "Address from which to map the frame buffer (upper 16 bits) (DANGEROUS!)"}, {"override_dga_address", "Address from which to map the frame buffer (upper 16 bits) (DANGEROUS!)"},
......
...@@ -813,7 +813,7 @@ static void graphics_subinit (void) ...@@ -813,7 +813,7 @@ static void graphics_subinit (void)
if (need_dither) { if (need_dither) {
gfxvidinfo.maxblocklines = 0; gfxvidinfo.maxblocklines = 0;
gfxvidinfo.rowbytes = gfxvidinfo.pixbytes * currprefs.gfx_width_win; gfxvidinfo.rowbytes = gfxvidinfo.pixbytes * currprefs.gfx_size_win.width;
gfxvidinfo.linemem = malloc (gfxvidinfo.rowbytes); gfxvidinfo.linemem = malloc (gfxvidinfo.rowbytes);
gfxvidinfo.flush_line = x11_flush_line_dither; gfxvidinfo.flush_line = x11_flush_line_dither;
} else if (! dgamode) { } else if (! dgamode) {
...@@ -907,10 +907,10 @@ int graphics_init (void) ...@@ -907,10 +907,10 @@ int graphics_init (void)
fixup_prefs_dimensions (&currprefs); fixup_prefs_dimensions (&currprefs);
gfxvidinfo.width = currprefs.gfx_width_win; gfxvidinfo.width = currprefs.gfx_size_win.width;
gfxvidinfo.height = currprefs.gfx_height_win; gfxvidinfo.height = currprefs.gfx_size_win.height;
current_width = currprefs.gfx_width_win; current_width = currprefs.gfx_size_win.width;
current_height = currprefs.gfx_height_win; current_height = currprefs.gfx_size_win.height;
cmap = XCreateColormap (display, rootwin, vis, AllocNone); cmap = XCreateColormap (display, rootwin, vis, AllocNone);
cmap2 = XCreateColormap (display, rootwin, vis, AllocNone); cmap2 = XCreateColormap (display, rootwin, vis, AllocNone);
...@@ -1215,12 +1215,12 @@ void handle_events (void) ...@@ -1215,12 +1215,12 @@ void handle_events (void)
int check_prefs_changed_gfx (void) int check_prefs_changed_gfx (void)
{ {
if (changed_prefs.gfx_width_win != currprefs.gfx_width_win if (changed_prefs.gfx_size_win.width != currprefs.gfx_size_win.width
|| changed_prefs.gfx_height_win != currprefs.gfx_height_win) || changed_prefs.gfx_size_win.height != currprefs.gfx_size_win.height)
fixup_prefs_dimensions (&changed_prefs); fixup_prefs_dimensions (&changed_prefs);
if (changed_prefs.gfx_width_win == currprefs.gfx_width_win if (changed_prefs.gfx_size_win.width == currprefs.gfx_size_win.width
&& changed_prefs.gfx_height_win == currprefs.gfx_height_win && changed_prefs.gfx_size_win.height == currprefs.gfx_size_win.height
&& changed_prefs.gfx_vresolution == currprefs.gfx_vresolution && changed_prefs.gfx_vresolution == currprefs.gfx_vresolution
&& changed_prefs.gfx_xcenter == currprefs.gfx_xcenter && changed_prefs.gfx_xcenter == currprefs.gfx_xcenter
&& changed_prefs.gfx_ycenter == currprefs.gfx_ycenter && changed_prefs.gfx_ycenter == currprefs.gfx_ycenter
...@@ -1229,8 +1229,8 @@ int check_prefs_changed_gfx (void) ...@@ -1229,8 +1229,8 @@ int check_prefs_changed_gfx (void)
return 0; return 0;
graphics_subshutdown (); graphics_subshutdown ();
currprefs.gfx_width_win = changed_prefs.gfx_width_win; currprefs.gfx_size_win.width = changed_prefs.gfx_size_win.width;
currprefs.gfx_height_win = changed_prefs.gfx_height_win; currprefs.gfx_size_win.height = changed_prefs.gfx_size_win.height;
currprefs.gfx_vresolution = changed_prefs.gfx_vresolution; currprefs.gfx_vresolution = changed_prefs.gfx_vresolution;
currprefs.gfx_xcenter = changed_prefs.gfx_xcenter; currprefs.gfx_xcenter = changed_prefs.gfx_xcenter;
currprefs.gfx_ycenter = changed_prefs.gfx_ycenter; currprefs.gfx_ycenter = changed_prefs.gfx_ycenter;
...@@ -1447,7 +1447,7 @@ static void set_window_for_picasso (void) ...@@ -1447,7 +1447,7 @@ static void set_window_for_picasso (void)
#endif #endif
} }
void gfx_set_picasso_modeinfo (uae_u32 w, uae_u32 h, uae_u32 depth, int rgbfmt) void gfx_set_picasso_modeinfo (uae_u32 w, uae_u32 h, uae_u32 depth, RGBFTYPE rgbfmt)
{ {
picasso_vidinfo.width = w; picasso_vidinfo.width = w;
picasso_vidinfo.height = h; picasso_vidinfo.height = h;
...@@ -1695,7 +1695,7 @@ static int init_kb (void) ...@@ -1695,7 +1695,7 @@ static int init_kb (void)
{ {
if (currprefs.map_raw_keys) { if (currprefs.map_raw_keys) {
if (rawkeys_available) { if (rawkeys_available) {
inputdevice_setkeytranslation (raw_keyboard, kbmaps); // inputdevice_setkeytranslation (raw_keyboard, kbmaps);
set_default_hotkeys (x11pc_hotkeys); set_default_hotkeys (x11pc_hotkeys);
write_log ("X11GFX: Enabling raw key-mapping.\n"); write_log ("X11GFX: Enabling raw key-mapping.\n");
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment