• Jose Fonseca's avatar
    wgl: Verify the client area size matches the required size on window creation too. · fc9db89c
    Jose Fonseca authored
    By default, Windows will limit windows too large to theu desktop size,
    and windows too small to be big enough for the titlebar.  Waffle's
    windows don't get affected as their style is WS_POPUPWINDOW, which
    doesn't include the WS_CAPTION style.
    
    This change adds more assertion, just in case this ever changes, as many
    piglit tests rely on large/tiny windows to have the requested size.
    
    Also replace `#ifdef DEBUG` with `#ifndef NDEBUG`, as NDEBUG is the
    define that controls assert macro.
    
    That said, I wonder if we should call
    `waffle_errorf(WAFFLE_ERROR_INTERNAL, ...)` and verify this on release
    builds too.
    Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: default avatarChad Versace <chad.versace@intel.com>
    fc9db89c
wgl_window.c 5.59 KB