mirror of
https://github.com/encounter/SDL.git
synced 2025-12-16 16:37:09 +00:00
Readability: change some pointer parameter to be pointer to const
This commit is contained in:
@@ -1237,19 +1237,19 @@ RLEAlphaSurface(SDL_Surface * surface)
|
||||
}
|
||||
|
||||
static Uint32
|
||||
getpix_8(Uint8 * srcbuf)
|
||||
getpix_8(const Uint8 * srcbuf)
|
||||
{
|
||||
return *srcbuf;
|
||||
}
|
||||
|
||||
static Uint32
|
||||
getpix_16(Uint8 * srcbuf)
|
||||
getpix_16(const Uint8 * srcbuf)
|
||||
{
|
||||
return *(Uint16 *) srcbuf;
|
||||
}
|
||||
|
||||
static Uint32
|
||||
getpix_24(Uint8 * srcbuf)
|
||||
getpix_24(const Uint8 * srcbuf)
|
||||
{
|
||||
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
|
||||
return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
|
||||
|
||||
@@ -625,7 +625,7 @@ X11_MessageBoxDraw( SDL_MessageBoxDataX11 *data, GC ctx )
|
||||
}
|
||||
|
||||
static Bool
|
||||
X11_MessageBoxEventTest(Display *display, XEvent *event, XPointer arg)
|
||||
X11_MessageBoxEventTest(Display *display, XEvent *event, const XPointer arg)
|
||||
{
|
||||
const SDL_MessageBoxDataX11 *data = (const SDL_MessageBoxDataX11 *) arg;
|
||||
return ((event->xany.display == data->display) && (event->xany.window == data->window)) ? True : False;
|
||||
|
||||
@@ -42,7 +42,7 @@ static int xinput2_multitouch_supported = 0;
|
||||
* this extension */
|
||||
static int xinput2_opcode;
|
||||
|
||||
static void parse_valuators(const double *input_values,unsigned char *mask,int mask_len,
|
||||
static void parse_valuators(const double *input_values, const unsigned char *mask,int mask_len,
|
||||
double *output_values,int output_values_len) {
|
||||
int i = 0,z = 0;
|
||||
int top = mask_len * 8;
|
||||
|
||||
Reference in New Issue
Block a user