Ignore:
Timestamp:
Dec 21, 1999, 2:28:20 AM (26 years ago)
Author:
hugh
Message:

Added ODIn lic header with ID to all files where missing

Cleaned up Surface handling by movefing colorfill and
colorconversion into own files and use functionpointers
setup during creation.

updated makefile to add files

removed inhertiance from IBASE in DDrectangle class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2DDRAW.CPP

    r1746 r2174  
     1/* $Id: OS2DDRAW.CPP,v 1.18 1999-12-21 01:28:15 hugh Exp $ */
     2
     3/*
     4 * DX Draw base class implementation
     5 *
     6 * Copyright 1998 Sander va Leeuwen
     7 * Copyright 1999 Markus Montkowski
     8 *
     9 * Project Odin Software License can be found in LICENSE.TXT
     10 *
     11 */
    112#include <stdlib.h>
    213#include <string.h>
     
    14791490    dprintf(("DDRAW: SetCooperativeLevel: hwnd %X, Flags %X\n", hwndClient, dwFlags));
    14801491  #endif
    1481 
     1492  me->dwCoopMode = dwFlags;
     1493  if(!(DDSCL_NORMAL & dwFlags))
     1494  {
     1495    // client window req. for all none DDSCL_NORMAL modes
     1496    if(NULL==hwndClient)
     1497      return(DDERR_INVALIDPARAMS);
     1498  }
    14821499  me->hwndClient = hwndClient;
    14831500  #if 0
     
    15041521  me->screenheight = dwHeight;
    15051522  me->screenbpp    = dwBPP;
     1523
     1524  if(me->dwCoopMode & DDSCL_FULLSCREEN)
     1525  {
     1526    SetWindowPos(me->hwndClient, HWND_TOP,0,0,dwWidth,dwHeight,0);
     1527  }
    15061528
    15071529  memset(&sBlt,0,sizeof(sBlt));
     
    15421564  me->screenbpp    = dwBPP;
    15431565
     1566  if(me->dwCoopMode & DDSCL_FULLSCREEN)
     1567  {
     1568    SetWindowPos(me->hwndClient, HWND_TOP,0,0,dwWidth,dwHeight,0);
     1569  }
     1570
    15441571  memset(&sBlt,0,sizeof(sBlt));
    15451572  sBlt.ulStructLen = sizeof(sBlt);
Note: See TracChangeset for help on using the changeset viewer.