notaz.gp2x.de
/
sdl_omap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle src buffer underflow corner cases
[sdl_omap.git]
/
src
/
video
/
omapdss
/
config.c
diff --git
a/src/video/omapdss/config.c
b/src/video/omapdss/config.c
index
5d5fb7b
..
10a9036
100644
(file)
--- a/
src/video/omapdss/config.c
+++ b/
src/video/omapdss/config.c
@@
-91,10
+91,18
@@
void omapsdl_config(struct SDL_PrivateVideoData *pdata)
pdata->cfg_force_doublebuf = !!strtol(p, NULL, 0);
continue;
}
pdata->cfg_force_doublebuf = !!strtol(p, NULL, 0);
continue;
}
+ else if (check_token_eq(&p, "force_directbuf")) {
+ pdata->cfg_force_directbuf = !!strtol(p, NULL, 0);
+ continue;
+ }
else if (check_token_eq(&p, "no_ts_translate")) {
pdata->cfg_no_ts_translate = !!strtol(p, NULL, 0);
continue;
}
else if (check_token_eq(&p, "no_ts_translate")) {
pdata->cfg_no_ts_translate = !!strtol(p, NULL, 0);
continue;
}
+ else if (check_token_eq(&p, "ts_force_tslib")) {
+ pdata->cfg_ts_force_tslib = !!strtol(p, NULL, 0);
+ continue;
+ }
bad:
err("config: failed to parse: %s", line);
bad:
err("config: failed to parse: %s", line);
@@
-112,9
+120,15
@@
void omapsdl_config_from_env(struct SDL_PrivateVideoData *pdata)
tmp = getenv("SDL_OMAP_FORCE_DOUBLEBUF");
if (tmp != NULL)
pdata->cfg_force_doublebuf = !!strtol(tmp, NULL, 0);
tmp = getenv("SDL_OMAP_FORCE_DOUBLEBUF");
if (tmp != NULL)
pdata->cfg_force_doublebuf = !!strtol(tmp, NULL, 0);
+ tmp = getenv("SDL_OMAP_FORCE_DIRECTBUF");
+ if (tmp != NULL)
+ pdata->cfg_force_directbuf = !!strtol(tmp, NULL, 0);
tmp = getenv("SDL_OMAP_NO_TS_TRANSLATE");
if (tmp != NULL)
pdata->cfg_no_ts_translate = !!strtol(tmp, NULL, 0);
tmp = getenv("SDL_OMAP_NO_TS_TRANSLATE");
if (tmp != NULL)
pdata->cfg_no_ts_translate = !!strtol(tmp, NULL, 0);
+ tmp = getenv("SDL_OMAP_TS_FORCE_TSLIB");
+ if (tmp != NULL)
+ pdata->cfg_ts_force_tslib = !!strtol(tmp, NULL, 0);
tmp = getenv("SDL_OMAP_BORDER_CUT");
if (tmp != NULL) {
int l, r, t, b;
tmp = getenv("SDL_OMAP_BORDER_CUT");
if (tmp != NULL) {
int l, r, t, b;