ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/bin/pclient
(Generate patch)

Comparing deliantra/Deliantra-Client/bin/pclient (file contents):
Revision 1.147 by root, Wed Apr 19 21:38:05 2006 UTC vs.
Revision 1.148 by root, Wed Apr 19 23:37:50 2006 UTC

3use strict; 3use strict;
4use utf8; 4use utf8;
5 5
6use Time::HiRes 'time'; 6use Time::HiRes 'time';
7use Event; 7use Event;
8
9use SDL::OpenGL;
10 8
11use Crossfire; 9use Crossfire;
12use Crossfire::Protocol; 10use Crossfire::Protocol;
13 11
14use Compress::LZF; 12use Compress::LZF;
522 $want_refresh = 0; 520 $want_refresh = 0;
523 $can_refresh = 0; 521 $can_refresh = 0;
524 522
525 $CFClient::UI::ROOT->draw; 523 $CFClient::UI::ROOT->draw;
526 524
527 SDL::GLSwapBuffers; 525 CFClient::SDL_GL_SwapBuffers;
528 526
529 $LAST_REFRESH = $NOW; 527 $LAST_REFRESH = $NOW;
530} 528}
531 529
532my $refresh_watcher = Event->timer (after => 0, hard => 1, interval => 1 / $MAX_FPS, cb => sub { 530my $refresh_watcher = Event->timer (after => 0, hard => 1, interval => 1 / $MAX_FPS, cb => sub {
911video_init; 909video_init;
912audio_init; 910audio_init;
913 911
914Event::loop; 912Event::loop;
915 913
916END { SDL::Quit } 914END { CFClient::SDL_Quit }
917 915
918 916

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines