Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
73ca9a6b
Kaydet (Commit)
73ca9a6b
authored
Kas 02, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Kas 10, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
init the OpenGL context in the windows backend
Change-Id: Ic4fb491c95170639015a4452f355354ad01612bc
üst
dafa1c73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
OpenGLContext.hxx
include/vcl/opengl/OpenGLContext.hxx
+2
-0
OpenGLContext.cxx
vcl/source/opengl/OpenGLContext.cxx
+11
-1
salgdi.cxx
vcl/win/source/gdi/salgdi.cxx
+6
-0
No files found.
include/vcl/opengl/OpenGLContext.hxx
Dosyayı görüntüle @
73ca9a6b
...
...
@@ -164,6 +164,8 @@ public:
// only in vcl's platform code
#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID
bool
init
(
Display
*
dpy
,
Window
win
,
int
screen
);
#elif defined( _WIN32 )
bool
init
(
HDC
hDC
,
HWND
hWnd
);
#endif
void
makeCurrent
();
...
...
vcl/source/opengl/OpenGLContext.cxx
Dosyayı görüntüle @
73ca9a6b
...
...
@@ -513,6 +513,16 @@ bool OpenGLContext::init(Display* dpy, Window win, int screen)
return
ImplInit
();
}
#elif defined( _WIN32 )
bool
OpenGLContext
::
init
(
HDC
hDC
,
HWND
hWnd
)
{
if
(
mbInitialized
)
return
false
;
m_aGLWin
.
hDC
=
hDC
;
m_aGLWin
.
hWnd
=
hWnd
;
return
ImplInit
();
}
#endif
bool
OpenGLContext
::
ImplInit
()
...
...
@@ -524,7 +534,6 @@ bool OpenGLContext::ImplInit()
m_aGLWin
.
Height
=
0
;
#if defined( WNT )
m_aGLWin
.
hDC
=
GetDC
(
m_aGLWin
.
hWnd
);
#elif defined( MACOSX )
#elif defined( IOS )
...
...
@@ -778,6 +787,7 @@ bool OpenGLContext::initWindow()
m_aGLWin
.
hWnd
=
sysData
->
hWnd
;
}
m_aGLWin
.
hDC
=
GetDC
(
m_aGLWin
.
hWnd
);
return
true
;
}
...
...
vcl/win/source/gdi/salgdi.cxx
Dosyayı görüntüle @
73ca9a6b
...
...
@@ -483,6 +483,12 @@ void WinSalGraphics::InitGraphics()
::
SetTextAlign
(
getHDC
(),
TA_BASELINE
|
TA_LEFT
|
TA_NOUPDATECP
);
::
SetBkMode
(
getHDC
(),
WIN32_TRANSPARENT
);
::
SetROP2
(
getHDC
(),
R2_COPYPEN
);
OpenGLSalGraphicsImpl
*
pImpl
=
dynamic_cast
<
OpenGLSalGraphicsImpl
*>
(
mpImpl
.
get
());
if
(
pImpl
)
{
pImpl
->
GetOpenGLContext
().
init
(
mhLocalDC
,
mhWnd
);
}
}
void
WinSalGraphics
::
DeInitGraphics
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment