diff options
author | deva <deva> | 2006-04-18 13:06:24 +0000 |
---|---|---|
committer | deva <deva> | 2006-04-18 13:06:24 +0000 |
commit | 108e71a9fb9b69fb58a1a4d72104527ef0165508 (patch) | |
tree | 1de2b5355eb9ea4400c68fbb6f4c6a15196e828f /client/player.cc | |
parent | 25a827c0a9aa0f14cd09a5b45d43a39e4f62ef8d (diff) |
*** empty log message ***
Diffstat (limited to 'client/player.cc')
-rw-r--r-- | client/player.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/player.cc b/client/player.cc index 608d53d..cb62de8 100644 --- a/client/player.cc +++ b/client/player.cc @@ -55,7 +55,12 @@ void Player::show_frame() dvdecoder.decode(frame); decoder->pframeRelease(); // Release frame data - render.width = widget->width(); - render.height = widget->height(); - render.display(WIDTH, HEIGHT); + if(widget->width() / 4 < widget->height() / 3) { + render.width = widget->width(); + render.height = render.width / 4 * 3; + } else { + render.height = widget->height(); + render.width = render.height / 3 * 4; + } + render.display(WIDTH / 2, HEIGHT / 2); } |