Patch by Karvjorm: Fix build of the window_creation app_server test. Thanks!
Closes ticket #6358. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37694 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,6 +8,6 @@ UseHeaders [ FDirName os interface ] ;
|
|||||||
|
|
||||||
Application WindowCreation :
|
Application WindowCreation :
|
||||||
main.cpp
|
main.cpp
|
||||||
: be
|
: $(TARGET_LIBSTDC++) be
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#include <Box.h>
|
#include <Box.h>
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <Screen.h>
|
#include <Screen.h>
|
||||||
|
#include <String.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -76,7 +77,7 @@ TestApp::_CreateFrames(uint32 numWindows)
|
|||||||
uint32 numVertical = (fScreenFrame.IntegerHeight() + 1) / (frame.IntegerHeight() + 1);
|
uint32 numVertical = (fScreenFrame.IntegerHeight() + 1) / (frame.IntegerHeight() + 1);
|
||||||
sNumFrames = numHorizontal * numVertical;
|
sNumFrames = numHorizontal * numVertical;
|
||||||
sFrames = new BRect[sNumFrames];
|
sFrames = new BRect[sNumFrames];
|
||||||
for (int32 i = 0; i < sNumFrames; i++) {
|
for (uint32 i = 0; i < sNumFrames; i++) {
|
||||||
sFrames[i] = frame;
|
sFrames[i] = frame;
|
||||||
frame.OffsetBy(50, 0);
|
frame.OffsetBy(50, 0);
|
||||||
if (!fScreenFrame.Contains(frame))
|
if (!fScreenFrame.Contains(frame))
|
||||||
|
|||||||
Reference in New Issue
Block a user