Skip to content

Commit

Permalink
pcmockup: fix logical merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Dec 7, 2018
1 parent 6d29056 commit 341a266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pcmockup/pcmockup.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ void safeFramebuffer_check(SafeFramebuffer* me);
typedef struct PebbleWindow PebbleWindow;
PebbleWindow* pebbleWindow_init(WindowContainer* parent, SDL_Rect initialBounds, GSize pebbleSize);
void pebbleWindow_free(PebbleWindow* window);
void pebbleWindow_update(PebbleWindow* me);
void pebbleWindow_startUpdate(PebbleWindow* me);
void pebbleWindow_endUpdate(PebbleWindow* me);
GColor* pebbleWindow_getPebbleFramebuffer(PebbleWindow* window);
ImageWindow* pebbleWindow_asImageWindow(PebbleWindow* window);

Expand Down
4 changes: 1 addition & 3 deletions pcmockup/pebblewindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ static inline SDL_Color prv_convertGColorTo32Bit(GColor pebbleColor)
static void prv_pebbleWindow_convertPebbleToTexture(PebbleWindow* me)
{
const GColor* pebblePixels = pebbleWindow_getPebbleFramebuffer(me);
char* texPixels;
int texPitch;
SDL_LockTexture(me->pebbleTexture, NULL, (void**)&texPixels, &texPitch);
SDL_Color* texPixels = me->textureData;

uint32_t* itTexPixel;
const GColor* itPebblePixel;
Expand Down

0 comments on commit 341a266

Please sign in to comment.