4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
|
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
|
+
+
+
+
+
+
|
return;
real_palette_set(n, r, g, b);
if (pal) {
HDC hdc = get_ctx(frontend);
UnrealizeObject(pal);
RealizePalette(hdc);
free_ctx(hdc);
} else {
if (n == (ATTR_DEFBG>>ATTR_BGSHIFT))
/* If Default Background changes, we need to ensure any
* space between the text area and the window border is
* redrawn. */
InvalidateRect(hwnd, NULL, TRUE);
}
}
void palette_reset(void *frontend)
{
int i;
|
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
|
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
|
+
+
+
+
|
if (pal) {
HDC hdc;
SetPaletteEntries(pal, 0, NALLCOLOURS, logpal->palPalEntry);
hdc = get_ctx(frontend);
RealizePalette(hdc);
free_ctx(hdc);
} else {
/* Default Background may have changed. Ensure any space between
* text area and window border is redrawn. */
InvalidateRect(hwnd, NULL, TRUE);
}
}
void write_aclip(void *frontend, char *data, int len, int must_deselect)
{
HGLOBAL clipdata;
void *lock;
|