From: giwoong.kim Date: Fri, 16 Mar 2012 14:08:04 +0000 (+0900) Subject: [Title] added scaling feature X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86b132be86fdf901c5952506d346913ef54a3c12;p=sdk%2Femulator%2Fqemu.git [Title] added scaling feature [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index 2930efe5c5..5c02d1f696 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -42,6 +42,7 @@ #include "debug_ch.h" #include "process.h" #include "option.h" +#include "emul_state.h" #ifdef _WIN32 #include #endif @@ -83,7 +84,7 @@ static void construct_main_window(int skin_argc, char* skin_argv[]) INFO("construct main window\n"); //TODO: init - set_emul_win_scale(100); + set_emul_win_scale(50); set_emul_rotation(0); diff --git a/tizen/src/maru_sdl.c b/tizen/src/maru_sdl.c index b396eaf3ef..cf6d1bc43b 100644 --- a/tizen/src/maru_sdl.c +++ b/tizen/src/maru_sdl.c @@ -54,9 +54,14 @@ static void qemu_update(void) 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 diff --git a/tizen/src/skin/maruskin_operation.c b/tizen/src/skin/maruskin_operation.c old mode 100755 new mode 100644 index edd7f74361..3a0bc87a8e --- a/tizen/src/skin/maruskin_operation.c +++ b/tizen/src/skin/maruskin_operation.c @@ -38,6 +38,8 @@ #include "sdb.h" #include "nbd.h" #include "../mloop_event.h" +#include "emul_state.h" +#include "sdl_rotate.h" #ifndef _WIN32 #include "maruskin_keymap.h" @@ -142,7 +144,7 @@ void do_hardkey_event( int event_type, int keycode ) { 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: diff --git a/tizen/src/skin/maruskin_server.c b/tizen/src/skin/maruskin_server.c old mode 100755 new mode 100644 index f0186e42f7..6a1a2123bb --- a/tizen/src/skin/maruskin_server.c +++ b/tizen/src/skin/maruskin_server.c @@ -47,6 +47,7 @@ #include "maruskin_operation.h" #include "debug_ch.h" #include "qemu-thread.h" +#include "emul_state.h" MULTI_DEBUG_CHANNEL( qemu, maruskin_server );