X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=gpsp.git;a=blobdiff_plain;f=gp2x%2Fgp2x.c;h=41e3f8b86a9a667d1366add60fbc20068fe45afa;hp=6d9f82e39f0afeff914df4898045287e80bd44b3;hb=e8f5db5d5a80a62069354466c64a9b90a2ced47c;hpb=c872443f88bd037784f795767041db9e307ac3f0 diff --git a/gp2x/gp2x.c b/gp2x/gp2x.c index 6d9f82e..41e3f8b 100644 --- a/gp2x/gp2x.c +++ b/gp2x/gp2x.c @@ -29,6 +29,7 @@ #include "../common.h" #include "gp2x.h" #include "warm.h" +#include "pollux_dpc_set.h" u32 gp2x_audio_volume = 74/2; u32 gpsp_gp2x_dev_audio = 0; @@ -124,6 +125,9 @@ void wiz_lcd_set_portrait(int y) gpsp_gp2x_memregl[0x4004>>2] = y ? 0x013f00ef : 0x00ef013f; gpsp_gp2x_memregl[0x4000>>2] |= 1 << 3; old_y = y; + + /* the above ioctl resets LCD timings, so set them here */ + pollux_dpc_set(gpsp_gp2x_memregs, getenv("pollux_dpc_set")); } static void fb_video_exit()