~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to modules/gui/skins2/macosx/macosx_graphics.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * macosx_graphics.cpp
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2003 the VideoLAN team
5
 
 * $Id: 5e071e79e0dfe5718969a10c53a7213ae6e747ed $
 
5
 * $Id$
6
6
 *
7
7
 * Authors: Cyril Deguet     <asmax@via.ecp.fr>
8
8
 *
24
24
#ifdef MACOSX_SKINS
25
25
 
26
26
#include "macosx_graphics.hpp"
 
27
#include "macosx_window.hpp"
27
28
 
28
29
 
29
30
MacOSXGraphics::MacOSXGraphics( intf_thread_t *pIntf, int width, int height ):
55
56
 
56
57
void MacOSXGraphics::drawBitmap( const GenericBitmap &rBitmap, int xSrc,
57
58
                                 int ySrc, int xDest, int yDest, int width,
58
 
                                 int height )
 
59
                                 int height, bool blend )
59
60
{
60
61
    // TODO
61
62
}
84
85
void MacOSXGraphics::copyToWindow( OSWindow &rWindow, int xSrc,  int ySrc,
85
86
                                int width, int height, int xDest, int yDest )
86
87
{
87
 
    // TODO
 
88
    // Get the graphics context
 
89
    WindowRef win = ((MacOSXWindow&)rWindow).getWindowRef();
 
90
    SetPortWindowPort( win );
 
91
    GrafPtr port = GetWindowPort( win );
 
92
    CGContextRef gc;
 
93
    QDBeginCGContext( port, &gc );
 
94
 
 
95
//    CGContextSetRGBFillColor( gc, 1, 0, 0, 1 );
 
96
//    CGContextFillRect( gc, CGRectMake( 0, 0, 50, 50 ));
 
97
 
 
98
    // Release the graphics context
 
99
    QDEndCGContext( port, &gc );
88
100
}
89
101
 
90
102