* no longer needs to define roundf() as it's now part of libroot.so (like on BeOS).
* for the libbe_test target, though, I need to declare it, although it's also declared in BeOS' math.h - Ingo?? * removed comment about B_ASYNCHRONOUS_CONTROLS - it's only used by our control classes to behave differently depending on that flag (mouse tracking). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14892 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -46,8 +46,13 @@
|
|||||||
#include <MessagePrivate.h>
|
#include <MessagePrivate.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
// TODO: I have no idea why this is, but the libbe_test target needs this
|
||||||
|
#ifdef HAIKU_TARGET_PLATFORM_LIBBE_TEST
|
||||||
|
extern "C" float roundf(float x);
|
||||||
|
#endif
|
||||||
|
|
||||||
//#define DEBUG_BVIEW
|
//#define DEBUG_BVIEW
|
||||||
#ifdef DEBUG_BVIEW
|
#ifdef DEBUG_BVIEW
|
||||||
@@ -65,14 +70,6 @@
|
|||||||
|
|
||||||
#define MAX_ATTACHMENT_SIZE 49152
|
#define MAX_ATTACHMENT_SIZE 49152
|
||||||
|
|
||||||
static inline float
|
|
||||||
roundf(float v)
|
|
||||||
{
|
|
||||||
if (v >= 0.0)
|
|
||||||
return floorf(v + 0.5);
|
|
||||||
else
|
|
||||||
return ceilf(v - 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
static property_info sViewPropInfo[] = {
|
static property_info sViewPropInfo[] = {
|
||||||
{ "Frame", { B_GET_PROPERTY, 0 },
|
{ "Frame", { B_GET_PROPERTY, 0 },
|
||||||
|
|||||||
@@ -42,6 +42,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
// TODO: I have no idea why this is, but the libbe_test target needs this
|
||||||
|
#ifdef HAIKU_TARGET_PLATFORM_LIBBE_TEST
|
||||||
|
extern "C" float roundf(float x);
|
||||||
|
#endif
|
||||||
|
|
||||||
//#define DEBUG_WIN
|
//#define DEBUG_WIN
|
||||||
#ifdef DEBUG_WIN
|
#ifdef DEBUG_WIN
|
||||||
@@ -52,16 +56,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// TODO: move to some place public (used in View.cpp as well)
|
|
||||||
static inline float
|
|
||||||
roundf(float v)
|
|
||||||
{
|
|
||||||
if (v >= 0.0)
|
|
||||||
return floorf(v + 0.5);
|
|
||||||
else
|
|
||||||
return ceilf(v - 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
class BWindow::Shortcut {
|
class BWindow::Shortcut {
|
||||||
public:
|
public:
|
||||||
Shortcut(uint32 key, uint32 modifiers, BMenuItem* item);
|
Shortcut(uint32 key, uint32 modifiers, BMenuItem* item);
|
||||||
@@ -2957,7 +2951,6 @@ BWindow::PrintToStream() const
|
|||||||
TODO list:
|
TODO list:
|
||||||
|
|
||||||
*) take care of temporarely events mask!!!
|
*) take care of temporarely events mask!!!
|
||||||
*) what's with this flag B_ASYNCHRONOUS_CONTROLS ?
|
|
||||||
*) test arguments for SetWindowAligment
|
*) test arguments for SetWindowAligment
|
||||||
*) call hook functions: MenusBeginning, MenusEnded. Add menu activation code.
|
*) call hook functions: MenusBeginning, MenusEnded. Add menu activation code.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user