+ float old_user_vout_width = user_vout_width;
+ var.value = NULL;
+ var.key = "picodrive_aspect";
+ if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
+ if (strcmp(var.value, "4/3") == 0)
+ user_vout_width = VOUT_4_3;
+ else if (strcmp(var.value, "CRT") == 0)
+ user_vout_width = VOUT_CRT;
+ else
+ user_vout_width = VOUT_PAR;
+ }
+
+ if (user_vout_width != old_user_vout_width)
+ {
+ // Update the geometry
+ struct retro_system_av_info av_info;
+ retro_get_system_av_info(&av_info);
+ environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &av_info);
+ }
+