Ticket #13729: Bitmap_FindView.cpp

File Bitmap_FindView.cpp, 404 bytes (added by jalopeura, 7 years ago)

Simple program to reproduce the bug

Line 
1#include <Bitmap.h>
2#include <Application.h>
3#include <View.h>
4#include <stdio.h>
5
6int main() {
7 new BApplication("application/x-vnd.Bitmap_FindView.test");
8
9 BBitmap bitmap(BRect(0,0,300,300), B_RGBA32, true);
10 BView* view = new BView(BRect(5,5,295,295), "View", B_FOLLOW_ALL, B_WILL_DRAW);
11 bitmap.AddChild(view);
12
13 BView* found = bitmap.FindView(BPoint(50,50));
14 printf("%p <> %p\n", view, found);
15}