Helper.cpp revision a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fc
98N/A * VBox frontends: Framebuffer (FB, DirectFB): 98N/A * Copyright (C) 2006-2007 innotek GmbH 98N/A * This file is part of VirtualBox Open Source Edition (OSE), as 98N/A * you can redistribute it and/or modify it under the terms of the GNU 98N/A * General Public License (GPL) as published by the Free Software 98N/A * Foundation, in version 2 as it comes in the "COPYING" file of the 98N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 98N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 98N/A * callback handler for populating the supported video modes 98N/A * @returns callback success indicator 98N/A * @param width width in pixels of the current video mode 112N/A * @param height height in pixels of the current video mode 98N/A * @param bpp bits per pixel of the current video mode 98N/A * @param callbackdata user data pointer 98N/A // don't take palette based modes 98N/A // don't take modes we already have (I have seen many cases where 98N/A // DirectFB returns the same modes several times) 98N/A * Returns the best fitting video mode for the given characteristics. * @returns index of the best video mode, -1 if no suitable mode found * @param width requested width * @param height requested height * @param bpp requested bit depth // is this mode compatible? // is it better than the one we got before?