Fixed Linux Compile-time errors.

This commit is contained in:
James Turk 2003-01-30 04:02:01 +00:00
parent 72dad5cc5b
commit c9da45f407
2 changed files with 6 additions and 5 deletions

View File

@ -13,7 +13,7 @@
File: ZE_ZEngine.cpp <br>
Description: Implementation source file for ZEngine library main singleton class. <br>
Author(s): James Turk <br>
$Id: ZE_ZEngine.cpp,v 1.25 2003/01/27 04:33:34 cozman Exp $<br>
$Id: ZE_ZEngine.cpp,v 1.26 2003/01/30 04:02:01 cozman Exp $<br>
\file ZE_ZEngine.cpp
\brief Central source file for ZEngine.
@ -274,10 +274,10 @@ void ZEngine::CloseDisplay()
void ZEngine::ToggleFullscreen()
{
char *title,*icon;
#ifdef linux //SDL_WM_TF only works on Linux
SDL_WM_ToggleFullscreen(mScreen);
SDL_WM_ToggleFullScreen(mScreen);
#else
char *title,*icon;
SetupDisplay(mWidth,mHeight,mBPP,!mFullscreen);
SDL_WM_GetCaption(&title,&icon);
if(icon)

View File

@ -13,7 +13,7 @@
File: ZE_ZImage.cpp <br>
Description: Implementation source file for core ZEngine Image or Texture Object. <br>
Author(s): James Turk, Gamer Tazar <br>
$Id: ZE_ZImage.cpp,v 1.21 2003/01/25 19:56:05 cozman Exp $<br>
$Id: ZE_ZImage.cpp,v 1.22 2003/01/30 04:02:01 cozman Exp $<br>
\file ZE_ZImage.cpp
\brief Source file for ZImage.
@ -33,7 +33,8 @@ ZImage::ZImage()
Release();
}
ZImage::ZImage(const ZImage &rhs)
ZImage::ZImage(const ZImage &rhs) :
ZObject()
{
rImage = NULL;
rAlpha = rhs.Alpha();