Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*~
effectv
v4lutils/v4ltest
core
6 changes: 1 addition & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,7 @@ static int startTV(const char *startEffect)
} else {
if(screen_lock() == 0) {
src = (RGB32 *)video_getaddress();
if(stretch) {
dest = stretching_buffer;
} else {
dest = (RGB32 *)screen_getaddress();
}
dest = (RGB32 *)screen_getaddress();

ret = currentEffect->draw(src, dest);

Expand Down
3 changes: 3 additions & 0 deletions screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#include "EffecTV.h"
#include "utils.h"

/* Defined in image.c */
extern RGB32 *stretching_buffer;

/* Main screen for displaying video image */
SDL_Surface *screen;
SDL_Window *window;
Expand Down
2 changes: 0 additions & 2 deletions utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ void fastsrand(unsigned int);
/*
* image.c
*/

RGB32 *stretching_buffer;
int image_init(void);
void image_end(void);
void image_stretching_buffer_clear(RGB32 color);
Expand Down