diff options
author | frosch <frosch@openttd.org> | 2009-12-19 18:46:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-12-19 18:46:40 +0000 |
commit | 29d6491605bb13e7a751b2a1a8b8728f17bbc54b (patch) | |
tree | d36add5885667a83011cef1fdbfe90d5ce548dfd /src/video/dedicated_v.cpp | |
parent | 7572f95448308fd19cd91ea1416ddf6320f51247 (diff) | |
download | openttd-29d6491605bb13e7a751b2a1a8b8728f17bbc54b.tar.xz |
(svn r18545) -Fix [FS#3292]: Assign '_screen.dst_ptr' as soon as it is allocated.
Diffstat (limited to 'src/video/dedicated_v.cpp')
-rw-r--r-- | src/video/dedicated_v.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index a88904987..a6cb3dec2 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -145,6 +145,7 @@ const char *VideoDriver_Dedicated::Start(const char * const *parm) _screen.width = _screen.pitch = _cur_resolution.width; _screen.height = _cur_resolution.height; + _screen.dst_ptr = _dedicated_video_mem; ScreenSizeChanged(); #if defined(WINCE) @@ -302,7 +303,6 @@ void VideoDriver_Dedicated::MainLoop() next_tick = cur_ticks + 30; GameLoop(); - _screen.dst_ptr = _dedicated_video_mem; UpdateWindows(); } CSleep(1); |