mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
* build settings for Release
* fix off-by-one error in bitmap drawing
This commit is contained in:
17
melonDS.cbp
17
melonDS.cbp
@ -54,26 +54,19 @@
|
|||||||
<Linker>
|
<Linker>
|
||||||
<Add option="-s" />
|
<Add option="-s" />
|
||||||
<Add option="-m64" />
|
<Add option="-m64" />
|
||||||
<Add library=":libwx_mswu_core-3.0.a" />
|
|
||||||
<Add library=":libwx_baseu-3.0.a" />
|
|
||||||
<Add library="SDL2" />
|
<Add library="SDL2" />
|
||||||
<Add library=":libpng.a" />
|
|
||||||
<Add library=":libjpeg.a" />
|
|
||||||
<Add library=":libtiff.a" />
|
|
||||||
<Add library=":libz.a" />
|
|
||||||
<Add library="rpcrt4" />
|
|
||||||
<Add library="oleaut32" />
|
|
||||||
<Add library="ole32" />
|
|
||||||
<Add library="uuid" />
|
|
||||||
<Add library="winspool" />
|
|
||||||
<Add library="winmm" />
|
|
||||||
<Add library="shell32" />
|
<Add library="shell32" />
|
||||||
<Add library="comctl32" />
|
<Add library="comctl32" />
|
||||||
<Add library="comdlg32" />
|
<Add library="comdlg32" />
|
||||||
<Add library="advapi32" />
|
<Add library="advapi32" />
|
||||||
<Add library="wsock32" />
|
<Add library="wsock32" />
|
||||||
<Add library="oleacc" />
|
<Add library="oleacc" />
|
||||||
|
<Add library="ole32" />
|
||||||
<Add library="gdi32" />
|
<Add library="gdi32" />
|
||||||
|
<Add library="d2d1" />
|
||||||
|
<Add library="dwrite" />
|
||||||
|
<Add library="uxtheme" />
|
||||||
|
<Add library="usp10" />
|
||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Debug Linux">
|
<Target title="Debug Linux">
|
||||||
|
@ -550,8 +550,8 @@ void uiDrawBitmapUpdate(uiDrawBitmap* bmp, const void* data)
|
|||||||
|
|
||||||
void uiDrawBitmapDraw(uiDrawContext* c, uiDrawBitmap* bmp, uiRect* srcrect, uiRect* dstrect)
|
void uiDrawBitmapDraw(uiDrawContext* c, uiDrawBitmap* bmp, uiRect* srcrect, uiRect* dstrect)
|
||||||
{
|
{
|
||||||
D2D_RECT_F _srcrect = D2D1::RectF(srcrect->X, srcrect->Y, srcrect->X+srcrect->Width-1, srcrect->Y+srcrect->Height-1);
|
D2D_RECT_F _srcrect = D2D1::RectF(srcrect->X, srcrect->Y, srcrect->X+srcrect->Width, srcrect->Y+srcrect->Height);
|
||||||
D2D_RECT_F _dstrect = D2D1::RectF(dstrect->X, dstrect->Y, dstrect->X+dstrect->Width-1, dstrect->Y+dstrect->Height-1);
|
D2D_RECT_F _dstrect = D2D1::RectF(dstrect->X, dstrect->Y, dstrect->X+dstrect->Width, dstrect->Y+dstrect->Height);
|
||||||
|
|
||||||
c->rt->DrawBitmap(bmp->bmp, &_dstrect, 1.0f, D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, &_srcrect);
|
c->rt->DrawBitmap(bmp->bmp, &_dstrect, 1.0f, D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, &_srcrect);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user