just a temporary thing... I couldn't resist
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12391 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a52667ee9c
commit
6359ecc258
@ -30,6 +30,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "CursorData.h"
|
||||
#include "HaikuSystemCursor.h"
|
||||
#include "ServerCursor.h"
|
||||
|
||||
#include "DisplayDriver.h"
|
||||
@ -64,7 +65,15 @@ DisplayDriver::~DisplayDriver()
|
||||
bool
|
||||
DisplayDriver::Initialize()
|
||||
{
|
||||
SetCursor(new ServerCursor(default_cursor_data));
|
||||
// SetCursor(new ServerCursor(default_cursor_data));
|
||||
// TODO: some temporary goofing arround
|
||||
ServerCursor* cursor = new ServerCursor(kHaikuCursorBits,
|
||||
kHaikuCursorWidth,
|
||||
kHaikuCursorHeight,
|
||||
kHaikuCursorFormat);
|
||||
// we just happen to know
|
||||
cursor->SetHotSpot(BPoint(1, 0));
|
||||
SetCursor(cursor);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
95
src/servers/app/drawing/HaikuSystemCursor.h
Normal file
95
src/servers/app/drawing/HaikuSystemCursor.h
Normal file
@ -0,0 +1,95 @@
|
||||
#ifndef HAIKU_SYSTEM_CURSOR_H
|
||||
#define HAIKU_SYSTEM_CURSOR_H
|
||||
|
||||
#include <GraphicsDefs.h>
|
||||
|
||||
const uint32 kHaikuCursorWidth = 18;
|
||||
const uint32 kHaikuCursorHeight = 18;
|
||||
const color_space kHaikuCursorFormat = B_RGBA32;
|
||||
|
||||
const unsigned char kHaikuCursorBits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x1f,
|
||||
0x00, 0x01, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x30, 0x00, 0x01, 0x01, 0x12, 0x00, 0x01, 0x01, 0x05,
|
||||
0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x10,
|
||||
0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0x00, 0x01, 0x01, 0x10, 0x00, 0x01, 0x01, 0x08, 0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x02,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x08, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x10, 0x00, 0x01, 0x01, 0x07, 0x00, 0x01, 0x01, 0x01,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02,
|
||||
0x00, 0x01, 0x01, 0x12, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0x00, 0x01, 0x01, 0x1a, 0x00, 0x01, 0x01, 0x08, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x1a,
|
||||
0x00, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x2e, 0x00, 0x01, 0x01, 0x10, 0x00, 0x01, 0x01, 0x02,
|
||||
0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x37,
|
||||
0x00, 0x01, 0x01, 0x15, 0x00, 0x01, 0x01, 0x02, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x38, 0x00, 0x01, 0x01, 0x15, 0x00, 0x01, 0x01, 0x02,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x38,
|
||||
0x00, 0x01, 0x01, 0x15, 0x00, 0x01, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x1f,
|
||||
0x00, 0x01, 0x01, 0x2f, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x38, 0x00, 0x01, 0x01, 0x15, 0x00, 0x01, 0x01, 0x02,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x08, 0x00, 0x01, 0x01, 0x12, 0x00, 0x01, 0x01, 0x1f,
|
||||
0x00, 0x01, 0x01, 0x2f, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0xff, 0x00, 0x01, 0x01, 0x36,
|
||||
0x00, 0x01, 0x01, 0x15, 0x00, 0x01, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x08, 0x00, 0x01, 0x01, 0x12, 0x00, 0x01, 0x01, 0x1f,
|
||||
0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x01, 0x46, 0x00, 0x01, 0x01, 0x3e,
|
||||
0x00, 0x01, 0x01, 0x37, 0x00, 0x01, 0x01, 0x29, 0x00, 0x01, 0x01, 0x0f, 0x00, 0x01, 0x01, 0x02,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x09, 0x00, 0x01, 0x01, 0x1a, 0x00, 0x01, 0x01, 0x2e,
|
||||
0x00, 0x01, 0x01, 0x37, 0x00, 0x01, 0x01, 0x38, 0x00, 0x01, 0x01, 0x38, 0x00, 0x01, 0x01, 0x37,
|
||||
0x00, 0x01, 0x01, 0x2f, 0x00, 0x01, 0x01, 0x1f, 0x00, 0x01, 0x01, 0x16, 0x00, 0x01, 0x01, 0x0f,
|
||||
0x00, 0x01, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01,
|
||||
0x00, 0x01, 0x01, 0x07, 0x00, 0x01, 0x01, 0x10, 0x00, 0x01, 0x01, 0x15, 0x00, 0x01, 0x01, 0x16,
|
||||
0x00, 0x01, 0x01, 0x16, 0x00, 0x01, 0x01, 0x15, 0x00, 0x01, 0x01, 0x10, 0x00, 0x01, 0x01, 0x08,
|
||||
0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x02,
|
||||
0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x03, 0x00, 0x01, 0x01, 0x03,
|
||||
0x00, 0x01, 0x01, 0x02, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x0a,
|
||||
0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a,
|
||||
0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a,
|
||||
0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a,
|
||||
0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a, 0x00, 0x01, 0x01, 0x0a
|
||||
};
|
||||
|
||||
#endif // HAIKU_SYSTEM_CURSOR_H
|
||||
|
Loading…
Reference in New Issue
Block a user