1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Changed some 'int's to 'size_t's, to improve 64-bit compatibility. Also changed jmin and jmax to use templates, so they can take any type. These changes might mean that you'll need to add some more explicit casts to get your existing code to compile, but this is actually a good thing - it brought to light a few dodgy implicit casts in my code, and may do the same in yours. Also added a function roundToInt(), which replaces roundDoubleToInt() and roundFloatToInt(), but takes any size of floating point number (I've left the old roundDoubleToInt() and roundFloatToInt() functions there for convenience, but will probably remove them in the future).

This commit is contained in:
Julian Storer 2010-01-14 14:49:25 +00:00
parent 0abb313d40
commit e61e8f6775
131 changed files with 562 additions and 604 deletions

View file

@ -1841,6 +1841,15 @@ private:
bool fullScreen, entered, mapped, depthIs16Bit;
BorderSize windowBorder;
struct MotifWmHints
{
unsigned long flags;
unsigned long functions;
unsigned long decorations;
long input_mode;
unsigned long status;
};
//==============================================================================
void removeWindowDecorations (Window wndH)
{
@ -1848,15 +1857,6 @@ private:
if (hints != None)
{
typedef struct
{
unsigned long flags;
unsigned long functions;
unsigned long decorations;
long input_mode;
unsigned long status;
} MotifWmHints;
MotifWmHints motifHints;
zerostruct (motifHints);
motifHints.flags = 2; /* MWM_HINTS_DECORATIONS */
@ -1916,15 +1916,6 @@ private:
if (hints != None)
{
typedef struct
{
unsigned long flags;
unsigned long functions;
unsigned long decorations;
long input_mode;
unsigned long status;
} MotifWmHints;
MotifWmHints motifHints;
zerostruct (motifHints);