Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
{
struct surface_context *ctx_surf = data;
- if (ctx_surf != NULL) {
- ctx_surf->prop.sourceWidth = (t_ilm_uint)width;
- ctx_surf->prop.sourceHeight = (t_ilm_uint)height;
- }
+ ctx_surf->prop.sourceWidth = (t_ilm_uint)width;
+ ctx_surf->prop.sourceHeight = (t_ilm_uint)height;
}
static void
{
struct surface_context *ctx_surf = data;
- if (ctx_surf != NULL) {
- ctx_surf->prop.pixelformat = (t_ilm_uint)pixelformat;
- }
+ ctx_surf->prop.pixelformat = (t_ilm_uint)pixelformat;
}
static void