Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl
perl-SDL
299.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 299.patch of Package perl-SDL
From 90d7056288282df9febf04acce6712f4071e4103 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt <git@ryandesign.com> Date: Wed, 26 Jan 2022 02:55:04 -0600 Subject: [PATCH] Fix implicit declaration of _calc_offset --- src/SDLx/Surface.xs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/SDLx/Surface.xs b/src/SDLx/Surface.xs index f3fdb017..44b0af15 100644 --- a/src/SDLx/Surface.xs +++ b/src/SDLx/Surface.xs @@ -16,6 +16,14 @@ #include <SDL_gfxPrimitives.h> #endif +int _calc_offset ( SDL_Surface* surface, int x, int y ) +{ + int offset; + offset = (surface->pitch * y) / surface->format->BytesPerPixel; + offset += x; + return offset; +} + SV * get_pixel32 (SDL_Surface *surface, int x, int y) { /* Convert the pixels to 32 bit */ @@ -52,14 +60,6 @@ SV * construct_p_matrix ( SDL_Surface *surface ) return newRV_noinc((SV *)matrix); } -int _calc_offset ( SDL_Surface* surface, int x, int y ) -{ - int offset; - offset = (surface->pitch * y) / surface->format->BytesPerPixel; - offset += x; - return offset; -} - unsigned int _get_pixel(SDL_Surface * surface, int offset) { unsigned int value;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor