Removed some compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3633 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
//
|
//
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
#include <AppDefs.h>
|
#include <AppDefs.h>
|
||||||
|
#include <PortMessage.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
#include <PortMessage.h>
|
#include <PortMessage.h>
|
||||||
#include "AppServer.h"
|
#include "AppServer.h"
|
||||||
|
|||||||
@@ -571,10 +571,10 @@ printf("ServerWindow %s: Message Move_By unimplemented\n",_title->String());
|
|||||||
*/
|
*/
|
||||||
void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
||||||
{
|
{
|
||||||
int msgPos;
|
int32 msgPos;
|
||||||
LayerData *layerdata;
|
LayerData *layerdata;
|
||||||
int32 code;
|
int32 code;
|
||||||
|
|
||||||
if ( !msgsize || !msgbuffer )
|
if ( !msgsize || !msgbuffer )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -603,7 +603,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_STROKE_ARC:
|
case AS_STROKE_ARC:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_STROKE_ARC_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_STROKE_ARC_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom, angle, span;
|
float left, top, right, bottom, angle, span;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -633,7 +633,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_STROKE_BEZIER:
|
case AS_STROKE_BEZIER:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_STROKE_BEZIER_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_STROKE_BEZIER_MSG_SIZE )
|
||||||
{
|
{
|
||||||
BPoint *pts;
|
BPoint *pts;
|
||||||
int i;
|
int i;
|
||||||
@@ -660,7 +660,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_STROKE_ELLIPSE:
|
case AS_STROKE_ELLIPSE:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_STROKE_ELLIPSE_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_STROKE_ELLIPSE_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom;
|
float left, top, right, bottom;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -686,7 +686,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_STROKE_LINE:
|
case AS_STROKE_LINE:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_STROKE_LINE_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_STROKE_LINE_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float x1, y1, x2, y2;
|
float x1, y1, x2, y2;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -723,7 +723,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_STROKE_RECT:
|
case AS_STROKE_RECT:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_STROKE_RECT_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_STROKE_RECT_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom;
|
float left, top, right, bottom;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -749,7 +749,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_STROKE_ROUNDRECT:
|
case AS_STROKE_ROUNDRECT:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_STROKE_ROUNDRECT_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_STROKE_ROUNDRECT_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom, xrad, yrad;
|
float left, top, right, bottom, xrad, yrad;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -784,7 +784,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_STROKE_TRIANGLE:
|
case AS_STROKE_TRIANGLE:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_STROKE_TRIANGLE_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_STROKE_TRIANGLE_MSG_SIZE )
|
||||||
{
|
{
|
||||||
BPoint *pts;
|
BPoint *pts;
|
||||||
float left, top, right, bottom;
|
float left, top, right, bottom;
|
||||||
@@ -821,7 +821,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_FILL_ARC:
|
case AS_FILL_ARC:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_FILL_ARC_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_FILL_ARC_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom, angle, span;
|
float left, top, right, bottom, angle, span;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -851,7 +851,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_FILL_BEZIER:
|
case AS_FILL_BEZIER:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_FILL_BEZIER_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_FILL_BEZIER_MSG_SIZE )
|
||||||
{
|
{
|
||||||
BPoint *pts;
|
BPoint *pts;
|
||||||
int i;
|
int i;
|
||||||
@@ -878,7 +878,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_FILL_ELLIPSE:
|
case AS_FILL_ELLIPSE:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_FILL_ELLIPSE_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_FILL_ELLIPSE_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom;
|
float left, top, right, bottom;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -909,7 +909,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_FILL_RECT:
|
case AS_FILL_RECT:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_FILL_RECT_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_FILL_RECT_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom;
|
float left, top, right, bottom;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -940,7 +940,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_FILL_ROUNDRECT:
|
case AS_FILL_ROUNDRECT:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_FILL_ROUNDRECT_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_FILL_ROUNDRECT_MSG_SIZE )
|
||||||
{
|
{
|
||||||
float left, top, right, bottom, xrad, yrad;
|
float left, top, right, bottom, xrad, yrad;
|
||||||
msgPos+=4;
|
msgPos+=4;
|
||||||
@@ -975,7 +975,7 @@ void ServerWindow::DispatchGraphicsMessage(int32 msgsize, int8 *msgbuffer)
|
|||||||
case AS_FILL_TRIANGLE:
|
case AS_FILL_TRIANGLE:
|
||||||
{
|
{
|
||||||
// TODO:: Add clipping
|
// TODO:: Add clipping
|
||||||
if ( msgsize-msgPos >= AS_FILL_TRIANGLE_MSG_SIZE )
|
if ( uint32(msgsize-msgPos) >= AS_FILL_TRIANGLE_MSG_SIZE )
|
||||||
{
|
{
|
||||||
BPoint *pts;
|
BPoint *pts;
|
||||||
float left, top, right, bottom;
|
float left, top, right, bottom;
|
||||||
|
|||||||
Reference in New Issue
Block a user