# HG changeset patch # User reimar # Date 1308508987 0 # Node ID 1f6ff1848bd3e79104bf5593b295b2baf80bc3b0 # Parent deedeb235cac93154e7c2d1218a9b7bc61bfa2eb Remove left-over code from icon/cursor handling that is now done by w32_common.c diff -r deedeb235cac -r 1f6ff1848bd3 libvo/vo_directx.c --- a/libvo/vo_directx.c Sun Jun 19 18:31:45 2011 +0000 +++ b/libvo/vo_directx.c Sun Jun 19 18:43:07 2011 +0000 @@ -68,8 +68,6 @@ static RECT rs; //rect of our source image static HBRUSH colorbrush = NULL; // Handle to colorkey brush static HBRUSH blackbrush = NULL; // Handle to black brush -static HICON mplayericon = NULL; // Handle to mplayer icon -static HCURSOR mplayercursor = NULL; // Handle to mplayer cursor static uint32_t image_width, image_height; //image width and height static uint32_t d_image_width, d_image_height; //image width and height zoomed static uint8_t *image=NULL; //image data @@ -356,10 +354,6 @@ mp_msg(MSGT_VO, MSGL_DBG3,"primary released\n"); UnregisterClass(WNDCLASSNAME_WINDOWED, GetModuleHandle(NULL)); UnregisterClass(WNDCLASSNAME_FULLSCREEN, GetModuleHandle(NULL)); - if (mplayericon) DestroyIcon(mplayericon); - mplayericon = NULL; - if (mplayercursor) DestroyCursor(mplayercursor); - mplayercursor = NULL; if (colorbrush) DeleteObject(colorbrush); colorbrush = NULL; mp_msg(MSGT_VO, MSGL_DBG3,"GDI resources deleted\n"); @@ -837,13 +831,6 @@ nooverlay = 1; } } - /*load icon from the main app*/ - if(GetModuleFileName(NULL,exedir,MAX_PATH)) - { - mplayericon = ExtractIcon( hInstance, exedir, 0 ); - } - if(!mplayericon)mplayericon=LoadIcon(NULL,IDI_APPLICATION); - mplayercursor = LoadCursor(NULL, IDC_ARROW); monitor_rect.right=GetSystemMetrics(SM_CXSCREEN); monitor_rect.bottom=GetSystemMetrics(SM_CYSCREEN);