Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 24, 2026

Diff for games/_shared/winbgim.cpp between version 1.1 and 1.2

version 1.1, 2003/06/22 18:45:32 version 1.2, 2003/06/27 21:57:25
Line 2363  static void initwork(int height, int wid
Line 2363  static void initwork(int height, int wid
         window_width = width;          window_width = width;
     }      }
     set_defaults();      set_defaults();
     hWnd = CreateWindow("BGIlibrary", "Windows BGI",          {
                         WS_OVERLAPPEDWINDOW,                  char *window_name = NULL;
                         0, 0, window_width+BORDER_WIDTH,  #if defined(PACKAGE)
                         window_height+BORDER_HEIGHT,  #  if defined(VERSION)
                         (HWND)NULL,  (HMENU)NULL,                  window_name = strdup(PACKAGE " " VERSION);
                         0, NULL);                  if (window_name != NULL && strchr(VERSION, '-') != NULL)
                           *strrchr(window_name, '-') = '\0';
   #  else
                   window_name = strdup(PACKAGE);
   #  endif
                   if (window_name != NULL)
                           window_name[0] = toupper(window_name[0]);
   #endif
                   hWnd = CreateWindow("BGIlibrary",
                                   window_name == NULL ? "Windows BGI" : window_name,
                                   WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
                                   /* | WS_MAXIMIZEBOX | WS_THICKFRAME */,
                                   0, 0,
                                   window_width  + BORDER_WIDTH,
                                   window_height + BORDER_HEIGHT,
                                   (HWND)  NULL,
                                   (HMENU) NULL,
                                   0, NULL);
   #if defined(PACKAGE)
                   if (window_name != NULL)
                           free(window_name);
   #endif
           }
   
     if (hWnd == NULL) {      if (hWnd == NULL) {
         gdi_error_code = GetLastError();          gdi_error_code = GetLastError();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top