Ignore:
Timestamp:
Nov 23, 1999, 8:34:19 PM (26 years ago)
Author:
sandervl
Message:

display api fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/user32.cpp

    r1739 r1818  
    1 /* $Id: user32.cpp,v 1.54 1999-11-14 16:35:55 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.55 1999-11-23 19:34:19 sandervl Exp $ */
    22
    33/*
     
    19241924/* Device Context Functions */
    19251925
    1926 BOOL WIN32API GetMonitorInfoA(HMONITOR,LPMONITORINFO)
    1927 {
    1928 #ifdef DEBUG
    1929   WriteLog("USER32:  GetMonitorInfoA not supported!!\n");
    1930 #endif
    1931   return(FALSE);
    1932 }
    1933 //******************************************************************************
    1934 //******************************************************************************
    1935 BOOL WIN32API GetMonitorInfoW(HMONITOR,LPMONITORINFO)
    1936 {
    1937 #ifdef DEBUG
    1938   WriteLog("USER32:  GetMonitorInfoW not supported!!\n");
    1939 #endif
    1940   return(FALSE);
    1941 }
    1942 //******************************************************************************
    1943 //******************************************************************************
    1944 HMONITOR WIN32API MonitorFromWindow(HWND hwnd, DWORD dwFlags)
    1945 {
    1946 #ifdef DEBUG
    1947   WriteLog("USER32:  MonitorFromWindow not correctly supported??\n");
    1948 #endif
    1949   //Attention: Win32 hwnd!
    1950 
    1951   return(0);
    1952 }
    1953 //******************************************************************************
    1954 //******************************************************************************
    1955 HMONITOR WIN32API MonitorFromRect(LPRECT rect, DWORD dwFlags)
    1956 {
    1957 #ifdef DEBUG
    1958   WriteLog("USER32:  MonitorFromRect not correctly supported??\n");
    1959 #endif
    1960   return(0);
    1961 }
    1962 //******************************************************************************
    1963 //******************************************************************************
    1964 HMONITOR WIN32API MonitorFromPoint(POINT point, DWORD dwflags)
    1965 {
    1966 #ifdef DEBUG
    1967   WriteLog("USER32:  MonitorFromPoint not correctly supported??\n");
    1968 #endif
    1969   return(0);
    1970 }
    1971 //******************************************************************************
    1972 //******************************************************************************
    1973 BOOL WIN32API EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM)
    1974 {
    1975 #ifdef DEBUG
    1976   WriteLog("USER32:  EnumDisplayMonitors not supported??\n");
    1977 #endif
    1978   return(FALSE);
    1979 }
    1980 //******************************************************************************
    1981 //******************************************************************************
    1982 BOOL WIN32API EnumDisplaySettingsA(LPCSTR lpszDeviceName, DWORD iModeNum,
    1983                       LPDEVMODEA lpDevMode)
    1984 {
    1985 #ifdef DEBUG
    1986     WriteLog("USER32:  EnumDisplaySettingsA FAKED\n");
    1987 #endif
    1988     switch(iModeNum) {
    1989     case 0:
    1990         lpDevMode->dmBitsPerPel       = 16;
    1991         lpDevMode->dmPelsWidth        = 768;
    1992         lpDevMode->dmPelsHeight       = 1024;
    1993         lpDevMode->dmDisplayFlags     = 0;
    1994         lpDevMode->dmDisplayFrequency = 70;
    1995         break;
    1996     case 1:
    1997         lpDevMode->dmBitsPerPel       = 16;
    1998         lpDevMode->dmPelsWidth        = 640;
    1999         lpDevMode->dmPelsHeight       = 480;
    2000         lpDevMode->dmDisplayFlags     = 0;
    2001         lpDevMode->dmDisplayFrequency = 70;
    2002         break;
    2003     default:
    2004         return(FALSE);
    2005     }
    2006     return(TRUE);
    2007 }
    2008 /*****************************************************************************
    2009  * Name      : BOOL WIN32API EnumDisplaySettingsW
    2010  * Purpose   : The EnumDisplaySettings function obtains information about one
    2011  *             of a display device's graphics modes. You can obtain information
    2012  *             for all of a display device's graphics modes by making a series
    2013  *             of calls to this function.
    2014  * Parameters: LPCTSTR   lpszDeviceName specifies the display device
    2015  *             DWORD     iModeNum       specifies the graphics mode
    2016  *             LPDEVMODE lpDevMode      points to structure to receive settings
    2017  * Variables :
    2018  * Result    : If the function succeeds, the return value is TRUE.
    2019  *             If the function fails, the return value is FALSE.
    2020  * Remark    :
    2021  * Status    : UNTESTED STUB
    2022  *
    2023  * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
    2024  *****************************************************************************/
    2025 BOOL WIN32API EnumDisplaySettingsW(LPCSTR     lpszDeviceName,
    2026                                       DWORD      iModeNum,
    2027                                       LPDEVMODEW lpDevMode)
    2028 {
    2029   dprintf(("USER32:EnumDisplaySettingsW (%s,%08xh,%08x) not implemented.\n",
    2030          lpszDeviceName,
    2031          iModeNum,
    2032          lpDevMode));
    2033 
    2034   return (EnumDisplaySettingsA(lpszDeviceName,
    2035                                iModeNum,
    2036                                (LPDEVMODEA)lpDevMode));
    2037 }
    2038 //******************************************************************************
    2039 //******************************************************************************
    2040 LONG WIN32API ChangeDisplaySettingsA(LPDEVMODEA  lpDevMode, DWORD dwFlags)
    2041 {
    2042 #ifdef DEBUG
    2043     if(lpDevMode) {
    2044         WriteLog("USER32:  ChangeDisplaySettingsA FAKED %X\n", dwFlags);
    2045         WriteLog("USER32:  ChangeDisplaySettingsA lpDevMode->dmBitsPerPel %d\n", lpDevMode->dmBitsPerPel);
    2046         WriteLog("USER32:  ChangeDisplaySettingsA lpDevMode->dmPelsWidth  %d\n", lpDevMode->dmPelsWidth);
    2047         WriteLog("USER32:  ChangeDisplaySettingsA lpDevMode->dmPelsHeight %d\n", lpDevMode->dmPelsHeight);
    2048     }
    2049 #endif
    2050     return(DISP_CHANGE_SUCCESSFUL);
    2051 }
    2052 /*****************************************************************************
    2053  * Name      : LONG WIN32API ChangeDisplaySettingsW
    2054  * Purpose   : The ChangeDisplaySettings function changes the display settings
    2055  *             to the specified graphics mode.
    2056  * Parameters: LPDEVMODEW lpDevModeW
    2057  *             DWORD      dwFlags
    2058  * Variables :
    2059  * Result    : DISP_CHANGE_SUCCESSFUL The settings change was successful.
    2060  *             DISP_CHANGE_RESTART    The computer must be restarted in order for the graphics mode to work.
    2061  *             DISP_CHANGE_BADFLAGS   An invalid set of flags was passed in.
    2062  *             DISP_CHANGE_FAILED     The display driver failed the specified graphics mode.
    2063  *             DISP_CHANGE_BADMODE    The graphics mode is not supported.
    2064  *             DISP_CHANGE_NOTUPDATED Unable to write settings to the registry.
    2065  * Remark    :
    2066  * Status    : UNTESTED STUB
    2067  *
    2068  * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
    2069  *****************************************************************************/
    2070 LONG WIN32API ChangeDisplaySettingsW(LPDEVMODEW lpDevMode,
    2071                                         DWORD      dwFlags)
    2072 {
    2073   dprintf(("USER32:ChangeDisplaySettingsW(%08xh,%08x) not implemented.\n",
    2074          lpDevMode,
    2075          dwFlags));
    2076 
    2077   return (ChangeDisplaySettingsA((LPDEVMODEA)lpDevMode,
    2078                                   dwFlags));
    2079 }
    20801926
    20811927/* Window Station and Desktop Functions */
Note: See TracChangeset for help on using the changeset viewer.