Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
dbdf9101
Commit
dbdf9101
authored
Apr 24, 2003
by
Cyril Deguet
Browse files
* get screen size with gtk2
parent
f7629a68
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins/gtk2/gtk2_api.cpp
View file @
dbdf9101
...
...
@@ -2,7 +2,7 @@
* gtk2_api.cpp: Various gtk2-specific functions
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_api.cpp,v 1.1
4
2003/04/2
2
1
9:26
:0
2
asmax Exp $
* $Id: gtk2_api.cpp,v 1.1
5
2003/04/2
4
1
4:38
:0
6
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -53,7 +53,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message, unsigned int para
long
param2
)
{
GdkEventClient
*
event
=
(
GdkEventClient
*
)
new
GdkEvent
;
event
->
type
=
GDK_CLIENT_EVENT
;
if
(
win
==
NULL
)
{
...
...
@@ -117,8 +117,8 @@ int OSAPI_GetTime()
//---------------------------------------------------------------------------
void
OSAPI_GetScreenSize
(
int
&
w
,
int
&
h
)
{
/*
w =
GetSystemMetrics(SM_CXSCREEN
);
h =
GetSystemMetrics(SM_CYSCREEN);*/
w
=
gdk_screen_width
(
);
h
=
gdk_screen_height
();
}
//---------------------------------------------------------------------------
void
OSAPI_GetMousePos
(
int
&
x
,
int
&
y
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment