diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-12-06 00:22:46 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | 9f006f18fe497c1ef12cd2973045fadbd500aaac (patch) | |
| tree | fab2f2562efbcfa83188797a966b32bd5810d7cc /src/stubs.c | |
| parent | 4508748944c293618d775e346c998f025cf6d1cd (diff) | |
Many warnings cleaned up (Tim Beckmann)
Menus.
Diffstat (limited to 'src/stubs.c')
| -rw-r--r-- | src/stubs.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/stubs.c b/src/stubs.c index d1f2097..49f3827 100644 --- a/src/stubs.c +++ b/src/stubs.c @@ -78,14 +78,12 @@ void StartMenuBackgroundBink() fprintf(stderr, "StartMenuBackgroundBink()\n"); } -#if 0 int PlayMenuBackgroundBink() { fprintf(stderr, "PlayMenuBackgroundBink()\n"); return 0; } -#endif void EndMenuBackgroundBink() { @@ -281,7 +279,22 @@ void UnlockSurface() void ReleaseDDSurface(void* DDSurface) { +/* fprintf(stderr, "ReleaseDDSurface(%p)\n", DDSurface); +*/ + D3DTexture *t = (D3DTexture *)DDSurface; + + if (t->id > 0) { + fprintf(stderr, "ReleaseDDSurface(%p) - OpenGL Object (tex = %d, %d, %d)\n", DDSurface, t->id, t->w, t->h); + } else { + if (t->buf) { + free(t->buf); + } else { + fprintf(stderr, "ReleaseDDSurface(%p) - What is This? (tex = %d, %d, %d)\n", DDSurface, t->id, t->w, t->h); + } + } + + free(t); } BOOL ChangeDirectDrawObject() |
