Changeset 7330 for trunk/src


Ignore:
Timestamp:
Nov 13, 2001, 4:42:19 PM (24 years ago)
Author:
sandervl
Message:

refuse DeleteObject for DEFAULT_GUI_FONT handle

Location:
trunk/src/gdi32
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/font.cpp

    r6350 r7330  
    1 /* $Id: font.cpp,v 1.20 2001-07-16 20:17:39 sandervl Exp $ */
     1/* $Id: font.cpp,v 1.21 2001-11-13 15:42:05 sandervl Exp $ */
    22
    33/*
     
    143143}
    144144
    145 
     145//******************************************************************************
     146HFONT hFntDefaultGui = NULL;
     147//TODO: more??
     148//******************************************************************************
     149BOOL WIN32API IsSystemFont(HFONT hFont)
     150{
     151    if(hFont == hFntDefaultGui) {
     152        return TRUE;
     153    }
     154    return FALSE;
     155}
    146156//******************************************************************************
    147157//******************************************************************************
  • trunk/src/gdi32/gdi32.cpp

    r6436 r7330  
    1 /* $Id: gdi32.cpp,v 1.75 2001-08-02 14:49:31 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.76 2001-11-13 15:42:05 sandervl Exp $ */
    22
    33/*
     
    2424#include <dcdata.h>
    2525#include <winuser32.h>
     26#include "font.h"
    2627
    2728#define DBG_LOCALLOG    DBG_gdi32
     
    5152//******************************************************************************
    5253//******************************************************************************
    53 
    54 static hFntDefaultGui = NULL;
    5554HGDIOBJ WIN32API GetStockObject(int arg1)
    5655{
  • trunk/src/gdi32/objhandle.cpp

    r6760 r7330  
    1 /* $Id: objhandle.cpp,v 1.18 2001-09-19 15:38:42 sandervl Exp $ */
     1/* $Id: objhandle.cpp,v 1.19 2001-11-13 15:42:06 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    2525#include "region.h"
    2626#include <unicode.h>
     27#include "font.h"
    2728
    2829#define DBG_LOCALLOG    DBG_objhandle
     
    372373                break;
    373374
     375        case OBJ_FONT:
     376            if(IsSystemFont(hObj))
     377            {
     378                SetLastError(ERROR_SUCCESS);
     379                return TRUE;
     380            }
     381            else
     382                break;
     383           
    374384        // add more system-type objects as required ...
    375385    }
Note: See TracChangeset for help on using the changeset viewer.