From f095b4556b3ccea4ef689e0815ca241be1b791c3 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 25 Jan 2008 10:43:58 +0000 Subject: [PATCH] for some reason, BDirectWindow apps compiled with the r5 headers don't work on haiku... let's start reverting some headers changes I did, although these don't look harmful. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23729 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/game/DirectWindow.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/headers/os/game/DirectWindow.h b/headers/os/game/DirectWindow.h index 07579a81d4..fb2ea4e3e0 100644 --- a/headers/os/game/DirectWindow.h +++ b/headers/os/game/DirectWindow.h @@ -19,7 +19,7 @@ enum direct_buffer_state { B_DIRECT_STOP = 1, B_DIRECT_MODIFY = 2, - B_CLIPPING_MODIFIED = 16, + B_CLIPPING_MODIFIED = 16, B_BUFFER_RESIZED = 32, B_BUFFER_MOVED = 64, B_BUFFER_RESET = 128 @@ -27,23 +27,25 @@ enum direct_buffer_state { enum direct_driver_state { - B_DRIVER_CHANGED = 1, - B_MODE_CHANGED = 2 + B_DRIVER_CHANGED = 0x0001, + B_MODE_CHANGED = 0x0002 }; typedef struct { direct_buffer_state buffer_state; direct_driver_state driver_state; - void *bits; - void *pci_bits; - int32 bytes_per_row; - uint32 bits_per_pixel; - color_space pixel_format; + void *bits; + void *pci_bits; + int32 bytes_per_row; + uint32 bits_per_pixel; + color_space pixel_format; buffer_layout layout; buffer_orientation orientation; - uint32 _reserved[11]; - uint32 clip_list_count; + uint32 _reserved[9]; + uint32 _dd_type_; + uint32 _dd_token_; + uint32 clip_list_count; clipping_rect window_bounds; clipping_rect clip_bounds; clipping_rect clip_list[1];