Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Implemented multi-window OpenGL program with test framework.
  • Loading branch information
slouken committed Jul 19, 2006
1 parent 7a885aa commit b60e8d8
Show file tree
Hide file tree
Showing 4 changed files with 233 additions and 679 deletions.
4 changes: 4 additions & 0 deletions src/events/SDL_windowevents.c
Expand Up @@ -60,6 +60,8 @@ SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
if (data1 == window->x && data2 == window->y) {
return 0;
}
window->x = data1;
window->y = data2;
break;
case SDL_WINDOWEVENT_RESIZED:
if (window->flags & SDL_WINDOW_FULLSCREEN) {
Expand All @@ -68,6 +70,8 @@ SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
if (data1 == window->w && data2 == window->h) {
return 0;
}
window->w = data1;
window->h = data2;
break;
case SDL_WINDOWEVENT_MINIMIZED:
if (window->flags & SDL_WINDOW_MINIMIZED) {
Expand Down
4 changes: 2 additions & 2 deletions test/Makefile.in
Expand Up @@ -53,8 +53,8 @@ testgamma$(EXE): $(srcdir)/testgamma.c
testgl$(EXE): $(srcdir)/testgl.c
$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@

testgl2$(EXE): $(srcdir)/testgl2.c
$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@

testhread$(EXE): $(srcdir)/testhread.c
$(CC) -o $@ $? $(CFLAGS) $(LIBS)
Expand Down

0 comments on commit b60e8d8

Please sign in to comment.