mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fixed the Linux makefile of the Qt sample
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1145 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
1e8cb5827d
commit
0ad6295ff4
@ -7,7 +7,7 @@ qt: $(OBJ)
|
||||
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system -lQtCore -lQtGui -lX11
|
||||
|
||||
%.o: %.cpp
|
||||
$(CC) -o $@ -c $< $(CFLAGS) -I/usr/include/qt4
|
||||
$(CC) -o $@ -c $< $(CFLAGS) -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
|
||||
|
||||
.PHONY: clean mrproper
|
||||
|
||||
|
@ -353,16 +353,7 @@ WindowImplX11::~WindowImplX11()
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Check if there's an active context on the current thread
|
||||
////////////////////
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Filter the received events
|
||||
/// (only allow those matching a specific window)
|
||||
////////////////////////////////////////////////////////////
|
||||
Bool CheckEvent(::Display*, XEvent* Event, XPointer UserData)
|
||||
{
|
||||
// Just check if the event matches our window
|
||||
return Event->xany.window == reinterpret_cast< ::Window >(UserData);
|
||||
}////////////////////////////////////////
|
||||
bool WindowImplX11::IsContextActive()
|
||||
{
|
||||
return glXGetCurrentContext() != NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user