# Is there a code like SDL\_VIDEO\_CENTERED=1

**URL:** <https://forum.clockworkpi.com/t/is-there-a-code-like-sdl-video-centered-1/3494>\
**Category:** Q&A\
**Created:** [April 27, 2019, 3:20pm UTC](https://forum.clockworkpi.com/t/is-there-a-code-like-sdl-video-centered-1/3494 "2019-04-27T15:20:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinjin](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/chinjin/32/2188_2.png) [@chinjin](https://forum.clockworkpi.com/u/chinjin)\
**Post date:** [April 27, 2019, 3:20pm UTC](https://forum.clockworkpi.com/t/is-there-a-code-like-sdl-video-centered-1/3494/1 "2019-04-27T15:20:08Z")

</div>

I’m looking for make DOSBox svn window set to  
center of gameshell screen.  
I found sdl code. there is SDL\_VIDEO\_CENTERED=1 this code.  
and gameshell does has code like that one?

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [April 28, 2019, 6:41am UTC](https://forum.clockworkpi.com/t/is-there-a-code-like-sdl-video-centered-1/3494/2 "2019-04-28T06:41:00Z")

</div>

SDL\_VIDEO\_CENTERED=1 is a env variable

not sure what you mean

I think this code is nothing to do with gameshell self, you can use it and the DOSBox svn window should be in the center

---

<div class="post-metadata">

**Author:** ![chinjin](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/chinjin/32/2188_2.png) [@chinjin](https://forum.clockworkpi.com/u/chinjin)\
**Post date:** [April 28, 2019, 7:49am UTC](https://forum.clockworkpi.com/t/is-there-a-code-like-sdl-video-centered-1/3494/3 "2019-04-28T07:49:02Z")

</div>

yep Im using DOSBox svn.  
but with surface option window is not being in the center…  
surface mod is faster than overlay… but if I change to fullscreen  
then overlay mod is only choice…

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [April 28, 2019, 7:53am UTC](https://forum.clockworkpi.com/t/is-there-a-code-like-sdl-video-centered-1/3494/4 "2019-04-28T07:53:21Z")

</div>

> [@guu](#):
>
> SDL\_VIDEO\_CENTERED=1

then I guess DosBox svn surface mod should do something to deal the ` SDL_VIDEO_CENTERED=1`

SDL self won’t auto deal with the `SDL_VIDEO_CENTERED=1`

---

<div class="post-metadata">

**Author:** ![chinjin](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/chinjin/32/2188_2.png) [@chinjin](https://forum.clockworkpi.com/u/chinjin)\
**Post date:** [April 28, 2019, 12:55pm UTC](https://forum.clockworkpi.com/t/is-there-a-code-like-sdl-video-centered-1/3494/5 "2019-04-28T12:55:13Z")

</div>

yep but now I cant know where I can fix that SDL\_VIDEO\_CENTERED=1
