Commit dbdf9101 authored by Cyril Deguet's avatar Cyril Deguet

* get screen size with gtk2

parent f7629a68
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_api.cpp: Various gtk2-specific functions * gtk2_api.cpp: Various gtk2-specific functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_api.cpp,v 1.14 2003/04/22 19:26:02 asmax Exp $ * $Id: gtk2_api.cpp,v 1.15 2003/04/24 14:38:06 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -53,7 +53,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message, unsigned int para ...@@ -53,7 +53,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message, unsigned int para
long param2 ) long param2 )
{ {
GdkEventClient *event = (GdkEventClient *) new GdkEvent; GdkEventClient *event = (GdkEventClient *) new GdkEvent;
event->type = GDK_CLIENT_EVENT; event->type = GDK_CLIENT_EVENT;
if( win == NULL ) if( win == NULL )
{ {
...@@ -117,8 +117,8 @@ int OSAPI_GetTime() ...@@ -117,8 +117,8 @@ int OSAPI_GetTime()
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void OSAPI_GetScreenSize( int &w, int &h ) void OSAPI_GetScreenSize( int &w, int &h )
{ {
/* w = GetSystemMetrics(SM_CXSCREEN); w = gdk_screen_width();
h = GetSystemMetrics(SM_CYSCREEN);*/ h = gdk_screen_height();
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void OSAPI_GetMousePos( int &x, int &y ) void OSAPI_GetMousePos( int &x, int &y )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment