#include "debug_ch.h"
#include "process.h"
#include "option.h"
+#include "emul_state.h"
#ifdef _WIN32
#include <winsock2.h>
#endif
INFO("construct main window\n");
//TODO: init
- set_emul_win_scale(100);
+ set_emul_win_scale(50);
set_emul_rotation(0);
pthread_mutex_lock(&sdl_mutex);
#endif
- SDL_BlitSurface(surface_qemu, NULL, surface_screen, NULL);
+ SDL_Surface *processing_screen;
+ processing_screen = rotozoomSurface(surface_qemu, 0.0, ((double)get_emul_win_scale()) / 100, 1);
+
+ SDL_BlitSurface(processing_screen, NULL, surface_screen, NULL);
SDL_UpdateRect(surface_screen, 0, 0, 0, 0);
+ SDL_FreeSurface(processing_screen);
+
#ifndef SDL_THREAD
pthread_mutex_unlock(&sdl_mutex);
#endif
#include "sdb.h"
#include "nbd.h"
#include "../mloop_event.h"
+#include "emul_state.h"
+#include "sdl_rotate.h"
#ifndef _WIN32
#include "maruskin_keymap.h"
void do_scale_event( int event_type) {
INFO( "do_scale_event event_type:%d", event_type);
- double scale_factor = event_type / 100; //TODO: define
+ //double scale_factor = event_type / 100; //TODO: define
//TODO: