Ticket #713: 0001-fullscreen-test.patch

File 0001-fullscreen-test.patch, 1.7 KB (added by woglinde, 11 years ago)
  • navit/navit/graphics/win32/graphics_win32.c

    From dfb31499c75c206995ad6f118b1fbb2790d408b3 Mon Sep 17 00:00:00 2001
    From: woglinde <heinold@inf.fu-berlin.de>
    Date: Mon, 3 Jan 2011 13:15:36 +0100
    Subject: [PATCH] fullscreen test
    
    foo
    ---
     navit/navit/graphics/win32/graphics_win32.c |   15 +++++++++++++++
     1 files changed, 15 insertions(+), 0 deletions(-)
    
    diff --git a/navit/navit/graphics/win32/graphics_win32.c b/navit/navit/graphics/win32/graphics_win32.c
    index 2d0e420..b5b28b8 100644
    a b struct window_priv 
    7070
    7171static HWND g_hwnd = NULL;
    7272
     73#ifdef HAVE_API_WIN32_CE
     74static int fullscr = 0;
     75#endif
     76
     77
    7378#ifndef GET_WHEEL_DELTA_WPARAM
    7479#define GET_WHEEL_DELTA_WPARAM(wParam)  ((short)HIWORD(wParam))
    7580#endif
    static LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l 
    525530    case WM_KEYDOWN:
    526531        HandleKeyDown( gra_priv, wParam);
    527532        break;
     533#ifdef HAVE_API_WIN32_CE
     534    case WM_ENABLE:;
     535        HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL);
     536        if (fullscr) {
     537           // deactivate the SIP button
     538           ShowWindow(hwndSip, SW_HIDE);
     539        }
     540        break;
     541#endif
    528542    default:
    529543        return DefWindowProc(hwnd, Message, wParam, lParam);
    530544    }
    static int fullscreen(struct window *win, int on) 
    537551#ifdef HAVE_API_WIN32_CE
    538552    HWND hwndTaskbar = FindWindow(L"HHTaskBar", NULL);
    539553    HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL);
     554    fullscr = on;
    540555        if (on) {
    541556        ShowWindow(hwndTaskbar, SW_HIDE);
    542557        MoveWindow(g_hwnd, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), FALSE);