-
-
Notifications
You must be signed in to change notification settings - Fork 190
Move surface to its own directory #3462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MightyJosip
wants to merge
19
commits into
pygame-community:main
Choose a base branch
from
MightyJosip:surface-refactor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6c35445
Refactor surface
MightyJosip 9da9106
Refactor surface
MightyJosip 1cf6646
Refactor surface
MightyJosip 7fa0a8b
Refactor surface
MightyJosip dbb1952
Refactor surface
MightyJosip 6368566
Refactor surface
MightyJosip 0a5e452
Refactor surface
MightyJosip 5b3c344
Merge remote-tracking branch 'upstream/main' into surface-refactor
MightyJosip 8ac529d
Refactor surface
MightyJosip 1615568
Refactor surface
MightyJosip e1df1ce
Refactor surface
MightyJosip 1b0635d
Refactor surface
MightyJosip 4239e92
Refactor surface
MightyJosip cbbf4fd
Refactor surface
MightyJosip 8739e82
Refactor surface
MightyJosip 5e1a244
Refactor surface
MightyJosip 4239f70
Merge remote-tracking branch 'upstream/main' into surface-refactor
MightyJosip 6f437bb
Merge remote-tracking branch 'upstream/main' into surface-refactor
MightyJosip 8010a7e
Merge remote-tracking branch 'upstream/main' into surface-refactor
MightyJosip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
|
||
#include <stddef.h> | ||
|
||
#include "palette.h" | ||
#include "include/palette.h" | ||
|
||
#include "pgcompat.h" | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
#ifndef _SURFACE_H | ||
#define _SURFACE_H | ||
|
||
#include "_pygame.h" | ||
#include "../_pygame.h" | ||
#include "surface.h" | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# TODO: support SDL3 | ||
if sdl_api != 3 | ||
MightyJosip marked this conversation as resolved.
Show resolved
Hide resolved
|
||
simd_blitters_avx2 = static_library( | ||
'simd_blitters_avx2', | ||
'simd_blitters_avx2.c', | ||
include_directories: '../include', | ||
dependencies: pg_base_deps, | ||
c_args: simd_avx2_flags + warnings_error, | ||
) | ||
|
||
simd_blitters_sse2 = static_library( | ||
'simd_blitters_sse2', | ||
'simd_blitters_sse2.c', | ||
include_directories: '../include', | ||
dependencies: pg_base_deps, | ||
c_args: simd_sse2_neon_flags + warnings_error, | ||
) | ||
|
||
simd_surface_fill_avx2 = static_library( | ||
'simd_surface_fill_avx2', | ||
'simd_surface_fill_avx2.c', | ||
include_directories: '../include', | ||
dependencies: pg_base_deps, | ||
c_args: simd_avx2_flags + warnings_error, | ||
) | ||
|
||
simd_surface_fill_sse2 = static_library( | ||
'simd_surface_fill_sse2', | ||
'simd_surface_fill_sse2.c', | ||
include_directories: '../include', | ||
dependencies: pg_base_deps, | ||
c_args: simd_sse2_neon_flags + warnings_error, | ||
) | ||
|
||
surface = py.extension_module( | ||
'surface', | ||
[ | ||
'surface.c', | ||
'alphablit.c', | ||
'surface_fill.c', | ||
], | ||
include_directories: '../include', | ||
c_args: warnings_error, | ||
link_with: [ | ||
simd_blitters_avx2, | ||
simd_blitters_sse2, | ||
simd_surface_fill_avx2, | ||
simd_surface_fill_sse2, | ||
], | ||
dependencies: pg_base_deps, | ||
install: true, | ||
subdir: pg, | ||
) | ||
install_data('surface.pyi', install_dir: pg_dir, install_tag: 'pg-tag') | ||
endif |
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.