# SDL\_DirectFB\_video.c

**URL:** <https://discourse.libsdl.org/t/sdl-directfb-video-c/16681>\
**Category:** SDL Development\
**Created:** [October 8, 2009, 6:08am UTC](https://discourse.libsdl.org/t/sdl-directfb-video-c/16681 "2009-10-08T06:08:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunafox](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/l/3e96dc/32.png) [@lunafox](https://discourse.libsdl.org/u/lunafox)\
**Post date:** [October 8, 2009, 6:08am UTC](https://discourse.libsdl.org/t/sdl-directfb-video-c/16681/1 "2009-10-08T06:08:44Z")

</div>

Hi, I’m confused about the line in DirectFB\_AllocHWSurface() in SDL\_DirectFB\_video.c :813 (SDL 1.2.13)

Code:  
if (surface-\>w \< 8 || surface-\>h \< 8)  
return -1;

Why does it not allocate a HW surface when width or height is less than 8?

Thanks.
