svn path=/trunk/; revision=15800
/* INCLUDES *******************************************************************/
/* INCLUDES *******************************************************************/
+#define NDEBUG
+#include <debug.h>
+
/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/
VP_STATUS STDCALL
/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/
VP_STATUS STDCALL
static int
VBESortModesCallback(PVBE_MODEINFO VbeModeInfoA, PVBE_MODEINFO VbeModeInfoB)
{
static int
VBESortModesCallback(PVBE_MODEINFO VbeModeInfoA, PVBE_MODEINFO VbeModeInfoB)
{
- DPRINT(("VBESortModesCallback: %dx%dx%d / %dx%dx%d\n",
+ DPRINT("VBESortModesCallback: %dx%dx%d / %dx%dx%d\n",
VbeModeInfoA->XResolution, VbeModeInfoA->YResolution,
VbeModeInfoA->BitsPerPixel,
VbeModeInfoB->XResolution, VbeModeInfoB->YResolution,
VbeModeInfoA->XResolution, VbeModeInfoA->YResolution,
VbeModeInfoA->BitsPerPixel,
VbeModeInfoB->XResolution, VbeModeInfoB->YResolution,
- VbeModeInfoB->BitsPerPixel));
+ VbeModeInfoB->BitsPerPixel);
/*
* FIXME: Until some reasonable method for changing video modes will
/*
* FIXME: Until some reasonable method for changing video modes will
if (Status != NO_ERROR)
{
if (Status != NO_ERROR)
{
- DPRINT(("Failed to get Int 10 service functions (Status %x)\n", Status));
+ DPRINT1("Failed to get Int 10 service functions (Status %x)\n", Status);
if (Status != NO_ERROR)
{
if (Status != NO_ERROR)
{
- DPRINT(("Failed to allocate virtual memory (Status %x)\n", Status));
+ DPRINT1("Failed to allocate virtual memory (Status %x)\n", Status);
&VBEDeviceExtension->VbeInfo,
sizeof(VBEDeviceExtension->VbeInfo));
&VBEDeviceExtension->VbeInfo,
sizeof(VBEDeviceExtension->VbeInfo));
- DPRINT(("VBE BIOS Present (%d.%d, %8ld Kb)\n",
+ DPRINT("VBE BIOS Present (%d.%d, %8ld Kb)\n",
VBEDeviceExtension->VbeInfo.Version / 0x100,
VBEDeviceExtension->VbeInfo.Version & 0xFF,
VBEDeviceExtension->VbeInfo.Version / 0x100,
VBEDeviceExtension->VbeInfo.Version & 0xFF,
- VBEDeviceExtension->VbeInfo.TotalMemory * 16));
+ VBEDeviceExtension->VbeInfo.TotalMemory * 16);
#ifdef VBE12_SUPPORT
if (VBEDeviceExtension->VbeInfo.Version < 0x102)
#ifdef VBE12_SUPPORT
if (VBEDeviceExtension->VbeInfo.Version < 0x102)
if (VBEDeviceExtension->VbeInfo.Version < 0x200)
#endif
{
if (VBEDeviceExtension->VbeInfo.Version < 0x200)
#endif
{
- DPRINT(("VBE BIOS present, but incompatible version.\n"));
+ DPRINT("VBE BIOS present, but incompatible version.\n");
- DPRINT(("No VBE BIOS found.\n"));
+ DPRINT("No VBE BIOS found.\n");
if (SuitableModeCount == 0)
{
if (SuitableModeCount == 0)
{
- DPRINT(("VBEMP: No video modes supported\n"));
+ DPRINT("VBEMP: No video modes supported\n");
* Print the supported video modes when DBG is set.
*/
* Print the supported video modes when DBG is set.
*/
+#if defined(DBG) && ! defined(NDEBUG)
for (CurrentMode = 0;
CurrentMode < SuitableModeCount;
CurrentMode++)
{
for (CurrentMode = 0;
CurrentMode < SuitableModeCount;
CurrentMode++)
{
VBEDeviceExtension->ModeInfo[CurrentMode].XResolution,
VBEDeviceExtension->ModeInfo[CurrentMode].YResolution,
VBEDeviceExtension->ModeInfo[CurrentMode].XResolution,
VBEDeviceExtension->ModeInfo[CurrentMode].YResolution,
- VBEDeviceExtension->ModeInfo[CurrentMode].BitsPerPixel));
+ VBEDeviceExtension->ModeInfo[CurrentMode].BitsPerPixel);
- DPRINT(("VBEMP: VBESetCurrentMode failed (%x)\n", BiosRegisters.Eax));
+ DPRINT1("VBEMP: VBESetCurrentMode failed (%x)\n", BiosRegisters.Eax);
DeviceExtension->CurrentMode = -1;
}
DeviceExtension->CurrentMode = -1;
}
#include <ddk/ntddvdeo.h>
#include <ddk/ntapi.h>
#include <ddk/ntddvdeo.h>
#include <ddk/ntapi.h>
-#ifdef DBG
-#define DPRINT(arg) DbgPrint arg;
-#else
-#define DPRINT(arg)
-#endif
-
/*
* Compile-time define to get VBE 1.2 support. The implementation
* is far from complete now and so it's left undefined.
/*
* Compile-time define to get VBE 1.2 support. The implementation
* is far from complete now and so it's left undefined.