~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to src/video/windows/SDL_windowsmessagebox.c

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#if SDL_VIDEO_DRIVER_WINDOWS
24
24
 
25
 
#include "SDL.h"
 
25
#include "../../core/windows/SDL_windows.h"
 
26
 
 
27
#include "SDL_assert.h"
26
28
#include "SDL_windowsvideo.h"
27
29
 
28
30
 
233
235
 
234
236
static void FreeDialogData(WIN_DialogData *dialog)
235
237
{
236
 
    if (dialog->data) {
237
 
        SDL_free(dialog->data);
238
 
    }
 
238
    SDL_free(dialog->data);
239
239
    SDL_free(dialog);
240
240
}
241
241
 
342
342
WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
343
343
{
344
344
    WIN_DialogData *dialog;
345
 
    int i, x, y, which;
 
345
    int i, x, y;
 
346
    UINT_PTR which;
346
347
    const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
347
348
    HFONT DialogFont;
348
349
    SIZE Size;