comparison libvo/vo_directx.c @ 12192:d16b2d48edd0

ignore mouseclicks when activating the window
author faust3
date Tue, 13 Apr 2004 13:33:03 +0000
parents ff9f315741a7
children 5c2e728f5a00
comparison
equal deleted inserted replaced
12191:60a5e538baf9 12192:d16b2d48edd0
1 /****************************************************************************** 1 /******************************************************************************
2 * vo_directx.c: Directx v2 or later DirectDraw interface for MPlayer 2 * vo_directx.c: Directx v2 or later DirectDraw interface for MPlayer
3 * Copyright (c) 2002 Sascha Sommer <saschasommer@freenet.de>. 3 * Copyright (c) 2002 - 2004 Sascha Sommer <saschasommer@freenet.de>.
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or 7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. 8 * (at your option) any later version.
833 //function handles input 833 //function handles input
834 static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) 834 static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
835 { 835 {
836 switch (message) 836 switch (message)
837 { 837 {
838 case WM_MOUSEACTIVATE:
839 return MA_ACTIVATEANDEAT;
838 case WM_NCACTIVATE: 840 case WM_NCACTIVATE:
839 { 841 {
840 if(vidmode && adapter_count > 2) //only disable if more than one adapter. 842 if(vidmode && adapter_count > 2) //only disable if more than one adapter.
841 return 0; 843 return 0;
842 break; 844 break;