Skip to content

Commit

Permalink
SDL_migration.cocci: Removed obsolete SDL_CreateWindowWithPosition code.
Browse files Browse the repository at this point in the history
This won't handle conversion of SDL_CreateWindow calls with arbitrary
positions, but it still will handle the common UNDEFINED scenario.

Fixes libsdl-org#11035.
  • Loading branch information
icculus committed Oct 3, 2024
1 parent f4cea5e commit 1bb7e2b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build-scripts/SDL_migration.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -2478,11 +2478,6 @@ expression e1, e2, e3, e4;
- SDL_CreateWindow(e1, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, e2, e3, e4)
+ SDL_CreateWindow(e1, e2, e3, e4)
@@
expression e1, e2, e3, e4, e5, e6;
@@
- SDL_CreateWindow(e1, e2, e3, e4, e5, e6)
+ SDL_CreateWindowWithPosition(e1, e2, e3, e4, e5, e6)
@@
expression e1, e2, e3, e4;
constant c1, c2;
@@
Expand Down

0 comments on commit 1bb7e2b

Please sign in to comment.