GCC4 fixes when compiling the test environment.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33453 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-10-06 09:19:57 +00:00
parent 1fc35b4f46
commit 50de4a5e00
@@ -333,9 +333,9 @@ DWindowHWInterface::DWindowHWInterface()
fAccMoveCursor(NULL), fAccMoveCursor(NULL),
fAccShowCursor(NULL), fAccShowCursor(NULL),
fRectParams(new (nothrow) fill_rect_params[kDefaultParamsCount]), fRectParams(new (std::nothrow) fill_rect_params[kDefaultParamsCount]),
fRectParamsCount(kDefaultParamsCount), fRectParamsCount(kDefaultParamsCount),
fBlitParams(new (nothrow) blit_params[kDefaultParamsCount]), fBlitParams(new (std::nothrow) blit_params[kDefaultParamsCount]),
fBlitParamsCount(kDefaultParamsCount) fBlitParamsCount(kDefaultParamsCount)
{ {
fDisplayMode.virtual_width = 800; fDisplayMode.virtual_width = 800;
@@ -797,7 +797,7 @@ DWindowHWInterface::GetModeList(display_mode** _modes, uint32* _count)
// const uint32 colors[] = {B_CMAP8, B_RGB15, B_RGB16, B_RGB32}; // const uint32 colors[] = {B_CMAP8, B_RGB15, B_RGB16, B_RGB32};
uint32 count = resolutionCount/* * 4*/; uint32 count = resolutionCount/* * 4*/;
display_mode* modes = new(nothrow) display_mode[count]; display_mode* modes = new(std::nothrow) display_mode[count];
if (modes == NULL) if (modes == NULL)
return B_NO_MEMORY; return B_NO_MEMORY;
@@ -825,7 +825,7 @@ DWindowHWInterface::GetModeList(display_mode** _modes, uint32* _count)
#else #else
// support only a single mode, useful // support only a single mode, useful
// for testing a specific mode // for testing a specific mode
display_mode *modes = new(nothrow) display_mode[1]; display_mode *modes = new(std::nothrow) display_mode[1];
modes[0].virtual_width = 800; modes[0].virtual_width = 800;
modes[0].virtual_height = 600; modes[0].virtual_height = 600;
modes[0].space = B_BRGB32; modes[0].space = B_BRGB32;
@@ -874,7 +874,7 @@ DWindowHWInterface::RetraceSemaphore()
status_t status_t
DWindowHWInterface::WaitForRetrace(bigtime_t timeout = B_INFINITE_TIMEOUT) DWindowHWInterface::WaitForRetrace(bigtime_t timeout)
{ {
// Locking shouldn't be necessary here - R5 should handle this for us. :) // Locking shouldn't be necessary here - R5 should handle this for us. :)
BScreen screen; BScreen screen;