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:
parent
b198a5f210
commit
9ea2a07cf3
@ -8,6 +8,6 @@ UseHeaders [ FDirName os interface ] ;
|
||||
|
||||
Application WindowCreation :
|
||||
main.cpp
|
||||
: be
|
||||
: $(TARGET_LIBSTDC++) be
|
||||
;
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <Box.h>
|
||||
#include <OS.h>
|
||||
#include <Screen.h>
|
||||
#include <String.h>
|
||||
#include <Window.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@ -76,7 +77,7 @@ TestApp::_CreateFrames(uint32 numWindows)
|
||||
uint32 numVertical = (fScreenFrame.IntegerHeight() + 1) / (frame.IntegerHeight() + 1);
|
||||
sNumFrames = numHorizontal * numVertical;
|
||||
sFrames = new BRect[sNumFrames];
|
||||
for (int32 i = 0; i < sNumFrames; i++) {
|
||||
for (uint32 i = 0; i < sNumFrames; i++) {
|
||||
sFrames[i] = frame;
|
||||
frame.OffsetBy(50, 0);
|
||||
if (!fScreenFrame.Contains(frame))
|
||||
|
Loading…
Reference in New Issue
Block a user