Changeset 60

Show
Ignore:
Timestamp:
11/30/04 22:36:01 (4 years ago)
Author:
aldacron
Message:

dmd 0.108 broke compilation of DerelictGL and DerelictSDL. A couple of unsigned constants were being initialized with negative values, and dmd now requires a cast in such cases. This has been corrected.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/DerelictGL/derelict/opengl/gl.d

    r46 r60  
    8989 
    9090/* layer types */ 
    91 const BYTE PFD_MAIN_PLANE                   = 0; 
    92 const BYTE PFD_OVERLAY_PLANE                = 1; 
    93 const BYTE PFD_UNDERLAY_PLANE               = -1; 
     91const int PFD_MAIN_PLANE                   = 0; 
     92const int PFD_OVERLAY_PLANE                = 1; 
     93const int PFD_UNDERLAY_PLANE               = -1; 
    9494 
    9595/* PIXELFORMATDESCRIPTOR flags */ 
  • trunk/DerelictSDL/derelict/sdl/events.d

    r18 r60  
    218218typedef int function(SDL_Event *event) SDL_EventFilter; 
    219219 
    220 const Uint8 SDL_QUERY           = -1; 
     220const Uint8 SDL_QUERY           = cast(Uint8)-1; 
    221221const Uint8 SDL_IGNORE          = 0; 
    222222const Uint8 SDL_DISABLE         = 0;