From 28777b68e7479e6515231fc849c61b3748da8712 Mon Sep 17 00:00:00 2001 From: Rr42 Date: Mon, 18 Jun 2018 13:41:24 +0530 Subject: Fixed bug in FillRect --- ldmicro/lib/linuxUI/linuxLD.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldmicro/lib/linuxUI/linuxLD.cpp') diff --git a/ldmicro/lib/linuxUI/linuxLD.cpp b/ldmicro/lib/linuxUI/linuxLD.cpp index 95f1221..966c5b3 100644 --- a/ldmicro/lib/linuxUI/linuxLD.cpp +++ b/ldmicro/lib/linuxUI/linuxLD.cpp @@ -116,8 +116,8 @@ HICON LoadImage(HINSTANCE hinst, LPCTSTR lpszName, UINT uType, int cxDesired, void RECT_to_GDRECT(const RECT *rc, GDRECT *gdrc) { - gdrc->x = rc->top; - gdrc->y = rc->left; + gdrc->x = rc->left; + gdrc->y = rc->top; gdrc->width = rc->right - rc->left; gdrc->height = rc->bottom - rc->top; } -- cgit From e25480293be793d0ab8c78038ff9ef6aa27a8c50 Mon Sep 17 00:00:00 2001 From: NatsuDrag9 Date: Wed, 20 Jun 2018 10:11:49 +0530 Subject: NewProgram () Segmentation fault --- ldmicro/lib/linuxUI/linuxLD.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ldmicro/lib/linuxUI/linuxLD.cpp') diff --git a/ldmicro/lib/linuxUI/linuxLD.cpp b/ldmicro/lib/linuxUI/linuxLD.cpp index cdeb190..8778154 100644 --- a/ldmicro/lib/linuxUI/linuxLD.cpp +++ b/ldmicro/lib/linuxUI/linuxLD.cpp @@ -1,4 +1,7 @@ #include "linuxUI.h" +#include + +using namespace std; std::vector HeapRecords; @@ -23,6 +26,7 @@ HANDLE HeapCreate(DWORD flOptions, SIZE_T dwInitialSize, SIZE_T dwMaximumSize) LPVOID HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes) { + cout << "Inside HeapAlloc" << "\n"; if (hHeap == NULL) { // printf("Alloc**********NULL HEAP***************\n"); @@ -64,6 +68,7 @@ LPVOID HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes) chunck.Chunck = p; chunck.dwSize = dwBytes; (*it).Element.push_back(chunck); + cout << "Exiting HeapAlloc" << "\n"; return p; } -- cgit