Changeset 2802 for trunk/src/gdi32


Ignore:
Timestamp:
Feb 16, 2000, 3:25:43 PM (26 years ago)
Author:
sandervl
Message:

Added new logging feature

Location:
trunk/src/gdi32
Files:
2 added
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/CALLBACK.CPP

    r97 r2802  
    1 /* $Id: CALLBACK.CPP,v 1.3 1999-06-10 17:09:02 phaller Exp $ */
     1/* $Id: CALLBACK.CPP,v 1.4 2000-02-16 14:18:09 sandervl Exp $ */
    22
    33/*
     
    1313#include "misc.h"
    1414#include "callback.h"
     15
     16#define DBG_LOCALLOG    DBG_callback
     17#include "dbglocal.h"
    1518
    1619static VOID OPEN32API Callback(int X, int Y, LPARAM lpData);
  • trunk/src/gdi32/blit.cpp

    r2614 r2802  
    1 /* $Id: blit.cpp,v 1.4 2000-02-03 18:59:04 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.5 2000-02-16 14:18:09 sandervl Exp $ */
    22
    33/*
     
    1818#include "dibsect.h"
    1919#include "rgbcvt.h"
     20
     21#define DBG_LOCALLOG    DBG_blit
     22#include "dbglocal.h"
    2023
    2124static ULONG QueryPaletteSize(BITMAPINFOHEADER *pBHdr);
     
    134137        DWORD *bitfields = (DWORD *)info->bmiColors;
    135138
    136         dprintf(("BI_BITFIELDS compression %x %x %x", *bitfields, *(bitfields+1), *(bitfields+2)));
    137139        ((BITMAPINFO *)info)->bmiHeader.biCompression = 0;
    138140        compression = BI_BITFIELDS;
    139141        if(*(bitfields+1) == 0x3E0)
    140142        {//RGB 555?
     143                dprintf(("BI_BITFIELDS compression %x %x %x", *bitfields, *(bitfields+1), *(bitfields+2)));
     144
    141145                newbits = (WORD *)malloc(imgsize);
    142146                if(CPUFeatures & CPUID_MMX) {
  • trunk/src/gdi32/dibitmap.cpp

    r2718 r2802  
    1 /* $Id: dibitmap.cpp,v 1.3 2000-02-10 00:36:10 sandervl Exp $ */
     1/* $Id: dibitmap.cpp,v 1.4 2000-02-16 14:18:09 sandervl Exp $ */
    22
    33/*
     
    1717#include "dibsect.h"
    1818
     19#define DBG_LOCALLOG    DBG_dibitmap
     20#include "dbglocal.h"
     21
    1922//******************************************************************************
    2023//******************************************************************************
     
    3134    if(lpbmih->biHeight < 0)
    3235    {
    33       ((BITMAPINFOHEADER *)lpbmih)->biHeight = -lpbmih->biHeight;
     36        dprintf(("GDI32: CreateDIBitmap negative height! (%d,%d)", lpbmih->biWidth, lpbmih->biHeight));
     37        ((BITMAPINFOHEADER *)lpbmih)->biHeight = -lpbmih->biHeight;
    3438    }
    3539
  • trunk/src/gdi32/dibsect.cpp

    r2718 r2802  
    1 /* $Id: dibsect.cpp,v 1.17 2000-02-10 00:36:10 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.18 2000-02-16 14:18:09 sandervl Exp $ */
    22
    33/*
     
    2727#include "oslibgpi.h"
    2828
     29#define DBG_LOCALLOG    DBG_dibsect
     30#include "dbglocal.h"
     31
    2932//Win32 apis used:
    3033HWND WIN32API WindowFromDC(HDC hdc);
     
    237240   if(bmpsize & 3)
    238241   {
    239      bmpsize = (bmpsize + 3) & ~3;
     242        bmpsize = (bmpsize + 3) & ~3;
    240243   }
    241244
     
    251254   pOS2bmp->cbImage       = pbmi->biSizeImage;
    252255
     256   dprintf(("DIBSection::SetDIBits (%d,%d), %d %d", pbmi->biWidth, pbmi->biHeight, pbmi->biBitCount, pbmi->biCompression));
     257
    253258   if(palsize)
    254259     memcpy(pOS2bmp->argbColor, (char *)pbmi + 1 , palsize);
  • trunk/src/gdi32/font.cpp

    r1982 r2802  
    1 /* $Id: font.cpp,v 1.8 1999-12-05 14:58:07 phaller Exp $ */
     1/* $Id: font.cpp,v 1.9 2000-02-16 14:18:09 sandervl Exp $ */
    22
    33/*
     
    3232#include <win\options.h>
    3333
     34#define DBG_LOCALLOG    DBG_font
     35#include "dbglocal.h"
    3436
    3537ODINDEBUGCHANNEL(GDI32-FONT)
  • trunk/src/gdi32/gdi32.cpp

    r2779 r2802  
    1 /* $Id: gdi32.cpp,v 1.42 2000-02-14 17:28:45 cbratschi Exp $ */
     1/* $Id: gdi32.cpp,v 1.43 2000-02-16 14:18:09 sandervl Exp $ */
    22
    33/*
     
    2121#include "oslibgpi.h"
    2222#include "oslibgdi.h"
     23
     24#define DBG_LOCALLOG    DBG_gdi32
     25#include "dbglocal.h"
    2326
    2427//******************************************************************************
  • trunk/src/gdi32/initterm.cpp

    r2650 r2802  
    1 /* $Id: initterm.cpp,v 1.9 2000-02-05 01:59:24 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.10 2000-02-16 14:18:10 sandervl Exp $ */
    22
    33/*
     
    3636#include <odinlx.h>
    3737#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     38#define DBG_LOCALLOG    DBG_initterm
     39#include "dbglocal.h"
    3840
    3941extern "C" {
     
    8789         _ctordtorInit();
    8890
     91         ParseLogStatus();
    8992         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9093
  • trunk/src/gdi32/line.cpp

    r2767 r2802  
    1 /* $Id: line.cpp,v 1.5 2000-02-12 18:08:57 cbratschi Exp $ */
     1/* $Id: line.cpp,v 1.6 2000-02-16 14:18:10 sandervl Exp $ */
    22/*
    33 * Line API's
     
    1515#include "oslibgpi.h"
    1616
     17#define DBG_LOCALLOG    DBG_line
     18#include "dbglocal.h"
     19
    1720#define ROUND_FLOAT(x) ((INT)((x < 0) ? x-0.5:x+0.5))
    1821
  • trunk/src/gdi32/makefile

    r2712 r2802  
    1 # $Id: makefile,v 1.21 2000-02-09 23:46:56 bird Exp $
     1# $Id: makefile,v 1.22 2000-02-16 14:18:10 sandervl Exp $
    22
    33#
     
    2323OBJS =  gdi32.obj opengl.obj callback.obj dibsect.obj initterm.obj resource.obj \
    2424        oslibgdi.obj font.obj text.obj palette.obj line.obj oslibgpi.obj region.obj \
    25         metafile.obj dibitmap.obj blit.obj rgbcvt.obj
     25        metafile.obj dibitmap.obj blit.obj rgbcvt.obj dbglocal.obj
    2626
    2727
  • trunk/src/gdi32/metafile.cpp

    r2592 r2802  
    1 /* $Id: metafile.cpp,v 1.1 2000-02-01 12:53:30 sandervl Exp $ */
     1/* $Id: metafile.cpp,v 1.2 2000-02-16 14:18:11 sandervl Exp $ */
    22
    33/*
     
    1616#include "misc.h"
    1717
     18#define DBG_LOCALLOG    DBG_metafile
     19#include "dbglocal.h"
     20
    1821//******************************************************************************
    1922//******************************************************************************
  • trunk/src/gdi32/opengl.cpp

    r2661 r2802  
    1 /* $Id: opengl.cpp,v 1.7 2000-02-05 15:55:54 sandervl Exp $ */
     1/* $Id: opengl.cpp,v 1.8 2000-02-16 14:18:11 sandervl Exp $ */
    22
    33/*
     
    2121#include "misc.h"
    2222#include "unicode.h"
     23
     24#define DBG_LOCALLOG    DBG_opengl
     25#include "dbglocal.h"
    2326
    2427
  • trunk/src/gdi32/oslibgdi.cpp

    r2600 r2802  
    1 /* $Id: oslibgdi.cpp,v 1.5 2000-02-02 23:45:07 sandervl Exp $ */
     1/* $Id: oslibgdi.cpp,v 1.6 2000-02-16 14:18:11 sandervl Exp $ */
    22
    33/*
     
    1919#include "dibsect.h"
    2020#include "oslibgdi.h"
     21
     22#define DBG_LOCALLOG    DBG_oslibgdi
     23#include "dbglocal.h"
    2124
    2225//******************************************************************************
  • trunk/src/gdi32/oslibgpi.cpp

    r2484 r2802  
    1 /* $Id: oslibgpi.cpp,v 1.3 2000-01-20 21:39:36 sandervl Exp $ */
     1/* $Id: oslibgpi.cpp,v 1.4 2000-02-16 14:18:11 sandervl Exp $ */
    22
    33/*
     
    2020#include "dcdata.h"
    2121
     22#define DBG_LOCALLOG    DBG_oslibgpi
     23#include "dbglocal.h"
     24
    2225#define GetDCData(a) ((pDCData)a)
    2326
  • trunk/src/gdi32/palette.cpp

    r2592 r2802  
    1 /* $Id: palette.cpp,v 1.2 2000-02-01 12:53:31 sandervl Exp $ */
     1/* $Id: palette.cpp,v 1.3 2000-02-16 14:18:12 sandervl Exp $ */
    22
    33/*
     
    1717#include <string.h>
    1818#include "dibsect.h"
     19
     20#define DBG_LOCALLOG    DBG_palette
     21#include "dbglocal.h"
    1922
    2023static UINT SystemPaletteUse = SYSPAL_STATIC;  /* currently not considered */
  • trunk/src/gdi32/region.cpp

    r2592 r2802  
    1 /* $Id: region.cpp,v 1.1 2000-02-01 12:53:31 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.2 2000-02-16 14:18:12 sandervl Exp $ */
    22
    33/*
     
    1515#include <string.h>
    1616#include "misc.h"
     17
     18#define DBG_LOCALLOG    DBG_region
     19#include "dbglocal.h"
    1720
    1821//******************************************************************************
  • trunk/src/gdi32/text.cpp

    r2558 r2802  
    1 /* $Id: text.cpp,v 1.7 2000-01-29 14:22:13 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.8 2000-02-16 14:18:12 sandervl Exp $ */
    22
    33/*
     
    1818#include <float.h>
    1919#include "oslibgpi.h"
     20
     21#define DBG_LOCALLOG    DBG_text
     22#include "dbglocal.h"
    2023
    2124#define ELLIPSIS    "..."
Note: See TracChangeset for help on using the changeset viewer.